fix role docker_compose: pull and restart #243
1 changed files with 3 additions and 3 deletions
|
@ -65,9 +65,9 @@
|
|||
|
||||
- name: stop old container
|
||||
become: true
|
||||
ansible.builtin.command: docker-compose down # noqa no-changed-when
|
||||
args:
|
||||
chdir: "{{ compose_dest_basedir }}/{{ item.name }}"
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ compose_dest_basedir }}/{{ item.name }}"
|
||||
state: absent
|
||||
loop: "{{ compose_files }}"
|
||||
when:
|
||||
- item.state == "absent"
|
||||
|
|
Loading…
Reference in a new issue