mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	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:
		| @@ -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" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user