diff --git a/roles/nextcloud_instance/tasks/install.yml b/roles/nextcloud_instance/tasks/install.yml index 38b19bbd691b4802f5e5a2b04dabed0d01ff21b4..8acb361794df757b04ee87a18e44ac89b19e2f49 100644 --- a/roles/nextcloud_instance/tasks/install.yml +++ b/roles/nextcloud_instance/tasks/install.yml @@ -95,6 +95,22 @@ state: absent when: not (config.stat.exists) + - name: "remove default folder" + file: + path: "{{ app_instance_root }}/core/skeleton/" + state: absent + + - name: "recreate folder of skeleton" + file: + path: "{{ app_instance_root }}/core/skeleton/" + state: directory + + - name: "Rescan files list" + shell: "php{{ php_version }} {{ www_root }}/{{ app_instance_id}}/occ files:scan --all" + become_user: "www-data" + vars: + ansible_ssh_pipelining: true + - name: "App update every mondays" cron: name: "{{ app_instance_root }}/occ app:update --all >/dev/null 2>&1"