summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-04-03 14:01:34 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-04-03 14:01:34 +0200
commit3387bce832e9198e840f93892b48121700bfbedb (patch)
tree3a9758927f3a0b48254748ca1005a53bc32d8731
parentcloudia: upgrade nextcloud and collabora (diff)
nextcloud: upgrade wolke.elevate.at and add info output
-rw-r--r--inventory/host_vars/sk-cloudia/nextcloud.yml2
-rw-r--r--roles/apps/nextcloud/tasks/main.yml27
2 files changed, 23 insertions, 6 deletions
diff --git a/inventory/host_vars/sk-cloudia/nextcloud.yml b/inventory/host_vars/sk-cloudia/nextcloud.yml
index d6819bf7..a0b94491 100644
--- a/inventory/host_vars/sk-cloudia/nextcloud.yml
+++ b/inventory/host_vars/sk-cloudia/nextcloud.yml
@@ -7,7 +7,7 @@ nextcloud_zfs:
nextcloud_instances:
wolke.elevate.at:
# new: true
- version: 17.0.5
+ version: 18.0.3
port: 8100
hostnames:
- wolke.elevate.at
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',
+ **
+ ****************************************