Commit d74c83df authored by Chris Croome's avatar Chris Croome

Main upgrade disabled maint mode when completed?

parent f8a74a81
......@@ -15,20 +15,6 @@
create: no
backup: yes
- name: Turn maintenance mode on
shell: php occ maintenance:mode --on
args:
executable: /bin/bash
chdir: /var/www/nextcloud
become_user: www-data
register: nextcloud_maintenance_mode_on
changed_when: "'Maintenance mode enabled' in nextcloud_maintenance_mode_on.stdout"
- name: Result of turn maintenance mode on
debug:
msg: "{{ nextcloud_maintenance_mode_on.stdout }}"
verbosity: 1
- name: Backup the nextcloud database
shell: "mysqldump nextcloud > /var/backups/mysql/nextcloud.sql"
......@@ -47,6 +33,20 @@
changed_when: "'No update available' not in nextcloud_updater.stdout"
failed_when: "'No update available' not in nextcloud_updater.stdout and 'Update successful' not in nextcloud_updater.stdout"
- name: Turn maintenance mode on
shell: php occ maintenance:mode --on
args:
executable: /bin/bash
chdir: /var/www/nextcloud
become_user: www-data
register: nextcloud_maintenance_mode_on
changed_when: "'Maintenance mode enabled' in nextcloud_maintenance_mode_on.stdout"
- name: Result of turn maintenance mode on
debug:
msg: "{{ nextcloud_maintenance_mode_on.stdout }}"
verbosity: 1
- name: Add database indexes
shell: php occ db:add-missing-indices
args:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment