Nextcloud: make app:update more robust by retrying once with retries/until (fixes transient migration errors)

See: https://chatgpt.com/share/68b57e29-4420-800f-b326-b34d09fa64b5
This commit is contained in:
2025-09-01 13:06:44 +02:00
parent aaedaab3da
commit 7254667186

View File

@@ -8,10 +8,13 @@
register: occ_repair
changed_when: "'No repairs needed' not in occ_repair.stdout"
- name: Nextcloud | App update
- name: Nextcloud | App update (retry once)
command: "{{ NEXTCLOUD_DOCKER_EXEC_OCC }} app:update --all"
register: occ_app_update
changed_when: "'No apps found for update' not in occ_app_update.stdout"
retries: 2
delay: 3
until: occ_app_update.rc == 0
- name: Nextcloud | Add missing columns
command: "{{ NEXTCLOUD_DOCKER_EXEC_OCC }} db:add-missing-columns"