diff --git a/defaults/main.yml b/defaults/main.yml index 09690a8..fd8558b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -33,3 +33,5 @@ timezone: Europe/Berlin nextcloud_postgresql_lc: de_DE.UTF-8 nextcloud_php_version: 7.3 + +nextcloud_reset_lib_directory: true diff --git a/tasks/access.yml b/tasks/access.yml index aed46d8..969db92 100644 --- a/tasks/access.yml +++ b/tasks/access.yml @@ -21,6 +21,14 @@ - themes - updater +- name: nextcloud custom apps directory + file: + path: "{{nextcloud_directory}}/custom_apps" + state: directory + owner: www-data + group: www-data + mode: 0750 + - name: nextcloud lib directory file: path: "{{nextcloud_lib_directory}}" diff --git a/tasks/configure.yml b/tasks/configure.yml index 62cddc0..7ac9386 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -22,7 +22,7 @@ with_indexed_items: "{{ nextcloud_server_names }}" when: _nextcloud_config.system.trusted_domains != nextcloud_server_names - - name: nextcloud occ config:system:set overwrite.cli.url (fix bug in nextcloud 14) + - name: nextcloud occ config:system:set overwrite.cli.url command: php occ config:system:set overwrite.cli.url --value="https://{{nextcloud_server_names|first}}/" args: chdir: "{{nextcloud_directory}}" diff --git a/tasks/reset.yml b/tasks/reset.yml index 0cf86f9..131c363 100644 --- a/tasks/reset.yml +++ b/tasks/reset.yml @@ -14,6 +14,7 @@ file: path: "{{nextcloud_lib_directory}}" state: absent + when: nextcloud_reset_lib_directory - name: drop mysql database mysql_db: