From 3387bce832e9198e840f93892b48121700bfbedb Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 3 Apr 2020 14:01:34 +0200 Subject: nextcloud: upgrade wolke.elevate.at and add info output --- roles/apps/nextcloud/tasks/main.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'roles/apps/nextcloud/tasks/main.yml') diff --git a/roles/apps/nextcloud/tasks/main.yml b/roles/apps/nextcloud/tasks/main.yml index a951867c..7d52be32 100644 --- a/roles/apps/nextcloud/tasks/main.yml +++ b/roles/apps/nextcloud/tasks/main.yml @@ -163,8 +163,25 @@ mode: 0755 ## TODO: -# run this after installation is complete: -# -# nextcloud-occ {{ instance }} db:add-missing-indices -# nextcloud-occ {{ instance }} db:convert-filecache-bigint -# +# do this automatically! +- name: print info for new instance + loop: "{{ nextcloud_instances | dict2items }}" + loop_control: + label: "{{ item.key }}" + when: "'new' in item.value and item.value.new" + pause: + seconds: 5 + prompt: | + ************* {{ item.key }} is a new instance + ** + ** Please run the following commands to finalize the installation + ** + ** $ nextcloud-occ {{ item.key }} db:add-missing-indices + ** $ nextcloud-occ {{ item.key }} db:convert-filecache-bigint + ** + ** Also please add the following option to the file + ** "{{ nextcloud_base_path }}/{{ item.key }}/nextcloud/config/config.php" + ** + ** 'overwriteprotocol' => 'https', + ** + **************************************** -- cgit v1.2.3