Skip to content
Snippets Groups Projects
Commit 6f248cb8 authored by jurgenhaas's avatar jurgenhaas
Browse files

Disable maintenance mode before running upgrades

parent f23e2865
Branches
No related tags found
No related merge requests found
...@@ -222,48 +222,45 @@ ...@@ -222,48 +222,45 @@
- nextcloud - nextcloud
- rainloop - rainloop
- block: - name: Enable Plugins
command: '{{ webRoot }}/occ app:enable {{ item.id }} --no-interaction --no-warnings'
- name: Enable Plugins become_user: '{{ apacheUser }}'
command: '{{ webRoot }}/occ app:enable {{ item.id }} --no-interaction --no-warnings' ignore_errors: yes
become_user: '{{ apacheUser }}' with_items: '{{ nextcloud_plugins_public }}'
ignore_errors: yes when: installed and item.latest_release.version != plugin_versions[item.id]|default('0.0.0')
with_items: '{{ nextcloud_plugins_public }}' tags:
when: item.latest_release.version != plugin_versions[item.id]|default('0.0.0') - deploy
tags: - plugins
- deploy
- plugins
- name: Run Upgrade
command: '{{ webRoot }}/occ upgrade --no-interaction --no-warnings'
become_user: '{{ apacheUser }}'
ignore_errors: yes
tags:
- deploy
- plugins
- name: Enable Plugins - name: Disable Maintenance Mode
command: '{{ webRoot }}/occ app:enable {{ item.id }} --no-interaction --no-warnings' command: '{{ webRoot }}/occ maintenance:mode --off --no-interaction --no-warnings'
become_user: '{{ apacheUser }}' become_user: '{{ apacheUser }}'
ignore_errors: yes ignore_errors: yes
with_items: '{{ nextcloud_plugins_public }}' tags:
when: item.latest_release.version != plugin_versions[item.id]|default('0.0.0') - deploy
tags: - plugins
- deploy
- plugins
- name: Run Upgrade
command: '{{ webRoot }}/occ upgrade --no-interaction --no-warnings'
become_user: '{{ apacheUser }}'
ignore_errors: yes
when: installed when: installed
- name: Configure Spreed
include_tasks: spreed.yml
when: nextcloud.spreed is defined
tags: tags:
- deploy - deploy
- plugins
- name: Disable Maintenance Mode - name: Enable Plugins
command: '{{ webRoot }}/occ maintenance:mode --off --no-interaction --no-warnings' command: '{{ webRoot }}/occ app:enable {{ item.id }} --no-interaction --no-warnings'
become_user: '{{ apacheUser }}' become_user: '{{ apacheUser }}'
ignore_errors: yes ignore_errors: yes
with_items: '{{ nextcloud_plugins_public }}'
when: installed and item.latest_release.version != plugin_versions[item.id]|default('0.0.0')
tags: tags:
- deploy - deploy
- plugins - plugins
- name: Configure Spreed
include_tasks: spreed.yml
when: nextcloud.spreed is defined
tags:
- deploy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment