Role: docker_compose: replace command with module #214

Merged
mg merged 7 commits from dcm into master 2024-10-23 17:59:35 +02:00
Showing only changes of commit 9ae6e0c31e - Show all commits

View file

@ -51,11 +51,13 @@
when:
- item.network is defined
- name: (re)start container
- name: restart changed container
become: true
community.docker.docker_compose_v2:
project_src: "{{ compose_dest_basedir }}/{{ item.name }}"
state: restarted
dependencies: true
pull: missing
loop: "{{ compose_files }}"
when:
- item.state == "present"