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 }} - PGID={{ docker_user.id }}
- TZ=Europe/London - TZ=Europe/London
volumes: volumes:
- ./nextcloud/config:/config/www/nextcloud/config - ./apps:/config/www/nextcloud/apps
- ./nextcloud/apps:/config/www/nextcloud/apps - ./config.php:/config/www/nextcloud/config/config.php
- /srv/nextcloud-data/data:/data - /srv/nextcloud-data/data:/data
- /opt/gitea/repos:/repos:ro - /opt/gitea/repos:/repos:ro
- /mnt/media:/content:ro - /mnt/media:/content:ro

View file

@ -19,17 +19,10 @@
register: compose_file register: compose_file
become: true 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 - name: Install nextcloud config
template: template:
src: files/nextcloud/config.php src: files/nextcloud/config.php
dest: /opt/nextcloud/nextcloud/config/config.php dest: /opt/nextcloud/config.php
mode: "{{ docker_compose_file_mask }}" mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}" owner: "{{ docker_user.name }}"
register: config_file register: config_file