From 731883bc31f61ce4d63775780e7f18489bfbbf6e Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 15 Nov 2024 20:30:22 +0000 Subject: [PATCH] changed Files: roles/mgrote_docker_compose_inline/tasks/main.yml Signed-off-by: Michael Grote --- roles/mgrote_docker_compose_inline/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/mgrote_docker_compose_inline/tasks/main.yml b/roles/mgrote_docker_compose_inline/tasks/main.yml index 29645687..4584b5fb 100644 --- a/roles/mgrote_docker_compose_inline/tasks/main.yml +++ b/roles/mgrote_docker_compose_inline/tasks/main.yml @@ -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"