From e9adeecc9306935b35b6583cadbef6eccabab770 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sun, 11 Aug 2024 21:21:51 +0200 Subject: [PATCH] Avoid docker compose down --- playbooks/roles/docker_compose/tasks/main.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/roles/docker_compose/tasks/main.yaml b/playbooks/roles/docker_compose/tasks/main.yaml index 3a434ec..e8cfcd0 100644 --- a/playbooks/roles/docker_compose/tasks/main.yaml +++ b/playbooks/roles/docker_compose/tasks/main.yaml @@ -48,7 +48,7 @@ state: absent become: true loop: "{{ docker_compose__config_files_to_remove.files }}" - notify: docker compose down + # notify: docker compose down - name: make sure all given configuration files are deployed ansible.builtin.copy: @@ -59,7 +59,7 @@ group: root become: true loop: "{{ docker_compose__configuration_files }}" - notify: docker compose down + # notify: docker compose down - name: Flush handlers to make "docker compose down" handler run now ansible.builtin.meta: flush_handlers @@ -74,7 +74,7 @@ - name: docker compose up --detach --pull always --build ansible.builtin.command: - cmd: /usr/bin/docker compose up --detach --pull always --build + cmd: /usr/bin/docker compose up --detach --pull always --build --remove-orphans chdir: /ansible_docker_compose become: true changed_when: false