diff --git a/nextcloud.yml b/nextcloud.yml index dd6827e..1b32409 100644 --- a/nextcloud.yml +++ b/nextcloud.yml @@ -286,8 +286,7 @@ then if docker compose -f /home/docker/traefik/docker-compose.yml logs | egrep -q "nextcloud.{{inventory_hostname}}.+error.+acme-challenge" then - docker compose -f /home/docker/traefik/docker-compose.yml down - docker compose -f /home/docker/traefik/docker-compose.yml up -d + docker compose -f /home/docker/traefik/docker-compose.yml up -d --force-recreate fi fi sleep 10 @@ -381,7 +380,7 @@ ansible.builtin.shell: bash /home/docker/nextcloud.{{inventory_hostname}}/nextcloud.init.sh - name: Restart nextcloud - ansible.builtin.shell: docker-compose up -d + ansible.builtin.shell: docker-compose up -d --force-recreate args: chdir: /home/docker/nextcloud.{{inventory_hostname}}