Commit f8a74a81 authored by Chris Croome's avatar Chris Croome

Added channel prompt to update

parent f5a3d88b
......@@ -26,7 +26,7 @@
- name: "nextcloud_version"
prompt: "The Nextcloud version from https://nextcloud.com/changelog/"
private: no
default: "14.0.3"
default: "15.0.4"
roles:
- acmesh
......
......@@ -31,6 +31,13 @@
# not used or needed so docker_compose_version can be left commented out
#docker_compose_version: 1.22.0
vars_prompt:
- name: "nextcloud_updater_release_channel"
prompt: "The Nextcloud update channel, production, stable or beta"
private: no
default: "production"
roles:
- nextcloud-upgrade
......@@ -7,6 +7,14 @@
group: www-data
mode: 0750
- name: Set the update channel
lineinfile:
path: /var/www/nextcloud/config/config.php
regexp: "^ \'updater.release.channel\'"
line: " 'updater.release.channel' => '{{ nextcloud_updater_release_channel }}',"
create: no
backup: yes
- name: Turn maintenance mode on
shell: php occ maintenance:mode --on
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