mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Moved update commands to nextcloud role
This commit is contained in:
34
roles/web-app-nextcloud/tasks/02_upgrade.yml
Normal file
34
roles/web-app-nextcloud/tasks/02_upgrade.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
- name: Nextcloud | Upgrade
|
||||
command: "{{ NEXTCLOUD_DOCKER_EXEC_OCC }} upgrade"
|
||||
register: occ_upgrade
|
||||
changed_when: "'Already up to date' not in occ_upgrade.stdout"
|
||||
|
||||
- name: Nextcloud | Maintenance repair
|
||||
command: "{{ NEXTCLOUD_DOCKER_EXEC_OCC }} maintenance:repair --include-expensive"
|
||||
register: occ_repair
|
||||
changed_when: "'No repairs needed' not in occ_repair.stdout"
|
||||
|
||||
- name: Nextcloud | App update
|
||||
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"
|
||||
|
||||
- name: Nextcloud | Add missing columns
|
||||
command: "{{ NEXTCLOUD_DOCKER_EXEC_OCC }} db:add-missing-columns"
|
||||
register: occ_columns
|
||||
changed_when: "'No columns found' not in occ_columns.stdout"
|
||||
|
||||
- name: Nextcloud | Add missing indices
|
||||
command: "{{ NEXTCLOUD_DOCKER_EXEC_OCC }} db:add-missing-indices"
|
||||
register: occ_indices
|
||||
changed_when: "'No indices found' not in occ_indices.stdout"
|
||||
|
||||
- name: Nextcloud | Add missing primary keys
|
||||
command: "{{ NEXTCLOUD_DOCKER_EXEC_OCC }} db:add-missing-primary-keys"
|
||||
register: occ_pks
|
||||
changed_when: "'No primary keys found' not in occ_pks.stdout"
|
||||
|
||||
- name: Nextcloud | Disable maintenance mode
|
||||
command: "{{ NEXTCLOUD_DOCKER_EXEC_OCC }} maintenance:mode --off"
|
||||
register: occ_maint_off
|
||||
changed_when: "'already disabled' not in occ_maint_off.stdout"
|
Reference in New Issue
Block a user