Always teardown the Docker Compose stack before updating it (will not delete any data)

This commit is contained in:
Jan Beilicke 2025-04-18 21:57:59 +02:00
parent f36c602a0e
commit 23e504e481

View file

@ -120,11 +120,11 @@
CRON_SCHEDULE="{{ restic_cron_schedule }}"
when: nextcloud_enable_restic_compose_backup == true
- name: "docker-compose: Teardown existing Nextcloud service"
- name: "docker-compose: Teardown existing Nextcloud service (will keep your volumes)"
docker_compose:
project_src: "/home/{{ docker_user }}/nextcloud/"
state: absent
tags: ['never', 'teardown']
tags: ['teardown']
- name: "docker-compose: Start Nextcloud service"
docker_compose: