diff options
-rw-r--r-- | inventory/host_vars/sk-cloudia/nextcloud.yml | 2 | ||||
-rw-r--r-- | roles/apps/nextcloud/tasks/main.yml | 27 |
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', + ** + **************************************** |