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 75136a62c2 - Show all commits

View file

@ -63,9 +63,9 @@
- name: stop old container - name: stop old container
become: true become: true
ansible.builtin.command: docker-compose down # noqa no-changed-when community.docker.docker_compose_v2:
args: project_src: "{{ compose_dest_basedir }}/{{ item.name }}"
chdir: "{{ compose_dest_basedir }}/{{ item.name }}" state: absent
loop: "{{ compose_files }}" loop: "{{ compose_files }}"
when: when:
- item.state == "absent" - item.state == "absent"