Refactor docker recreate and rebuild flags
This commit is contained in:
parent
8f026330d7
commit
40802d9d4f
24 changed files with 61 additions and 82 deletions
7
playbooks/tasks/restart-service.yml
Normal file
7
playbooks/tasks/restart-service.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: "Restart service {{ role_name }}"
|
||||
ansible.builtin.command:
|
||||
cmd: docker compose up -d --force-recreate
|
||||
chdir: "{{ (services_path, role_name) | path_join }}"
|
||||
when: "'local-dev' != inventory_hostname"
|
||||
changed_when: true
|
Loading…
Add table
Add a link
Reference in a new issue