mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-24 00:08:02 +01:00
This commit is contained in:
parent
62b42a9a85
commit
7cdcbd9d87
2 changed files with 10 additions and 2 deletions
|
@ -1,5 +1,11 @@
|
|||
---
|
||||
- name: Restart service
|
||||
- name: Stop service
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ docker_dir }}"
|
||||
state: restarted
|
||||
state: stopped
|
||||
listen: Restart service
|
||||
- name: Start service
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ docker_dir }}"
|
||||
state: present
|
||||
listen: Restart service
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
- templates/{{ docker_app_name }}/.*.j2
|
||||
notify:
|
||||
- Restart service
|
||||
- name: Flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
- name: Ensure service is started
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ docker_dir }}"
|
||||
|
|
Loading…
Reference in a new issue