heavy restart in docker role
Some checks are pending
/ run ansible (push) Waiting to run

This commit is contained in:
Gabriel Augendre 2024-10-11 19:32:39 +02:00
parent 62b42a9a85
commit 7cdcbd9d87
2 changed files with 10 additions and 2 deletions

View file

@ -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

View file

@ -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 }}"