Move nextcloud config into root

This commit is contained in:
Jake Howard 2020-07-02 18:44:27 +01:00
parent c80d4b7e04
commit 1c99477ce9
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 10 deletions

View file

@ -8,8 +8,8 @@ services:
- PGID={{ docker_user.id }}
- TZ=Europe/London
volumes:
- ./nextcloud/config:/config/www/nextcloud/config
- ./nextcloud/apps:/config/www/nextcloud/apps
- ./apps:/config/www/nextcloud/apps
- ./config.php:/config/www/nextcloud/config/config.php
- /srv/nextcloud-data/data:/data
- /opt/gitea/repos:/repos:ro
- /mnt/media:/content:ro

View file

@ -19,17 +19,10 @@
register: compose_file
become: true
- name: Create nextcloud config directory
file:
path: /opt/nextcloud/nextcloud/config
state: directory
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install nextcloud config
template:
src: files/nextcloud/config.php
dest: /opt/nextcloud/nextcloud/config/config.php
dest: /opt/nextcloud/config.php
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
register: config_file