Avoid docker compose down

This commit is contained in:
Stefan Bethke 2024-08-11 21:21:51 +02:00
parent 7a0935cecf
commit e9adeecc93

View file

@ -48,7 +48,7 @@
state: absent state: absent
become: true become: true
loop: "{{ docker_compose__config_files_to_remove.files }}" 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 - name: make sure all given configuration files are deployed
ansible.builtin.copy: ansible.builtin.copy:
@ -59,7 +59,7 @@
group: root group: root
become: true become: true
loop: "{{ docker_compose__configuration_files }}" loop: "{{ docker_compose__configuration_files }}"
notify: docker compose down # notify: docker compose down
- name: Flush handlers to make "docker compose down" handler run now - name: Flush handlers to make "docker compose down" handler run now
ansible.builtin.meta: flush_handlers ansible.builtin.meta: flush_handlers
@ -74,7 +74,7 @@
- name: docker compose up --detach --pull always --build - name: docker compose up --detach --pull always --build
ansible.builtin.command: 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 chdir: /ansible_docker_compose
become: true become: true
changed_when: false changed_when: false