Skip to content
Snippets Groups Projects
Commit c4373487 authored by Maxime Bombar's avatar Maxime Bombar
Browse files

[upgrade.yml] Factorize tasks upgrading ownCloud

parent fd65a64a
No related branches found
No related tags found
No related merge requests found
......@@ -20,14 +20,14 @@
until: apt_result is succeeded
- hosts: owncloud-srv.adm.crans.org
become_user: www-data
become: yes
vars:
# Owncloud command line interface
occ_bin: '/var/www/owncloud/occ'
tasks:
- name: Upgrade owncloud
command: "{{ occ_bin }} upgrade"
become: yes
become_user: www-data
register: upgrade_owncloud
failed_when:
# occ return code is 3 when ownCloud is already latest version
......@@ -43,8 +43,6 @@
- name: Disable maintenance mode
command: "{{ occ_bin }} maintenance:mode --off"
become: yes
become_user: www-data
when:
# Maintenance mode has not been enabled.
- upgrade_owncloud.rc != 3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment