From 3818064e8c1f414f757144bc1997f288bc2a075c Mon Sep 17 00:00:00 2001 From: Julien Gomes Dias Date: Mon, 19 Dec 2022 11:26:25 +0100 Subject: [PATCH] [wip] Remove default files in Nextcloud during installation of the instance --- roles/nextcloud_instance/tasks/install.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/roles/nextcloud_instance/tasks/install.yml b/roles/nextcloud_instance/tasks/install.yml index 38b19bbd..8acb3617 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" -- GitLab