Fix permissions on Nextcloud webroot

This commit is contained in:
Salt 2020-02-06 00:20:43 -06:00
parent c2d9a3786f
commit 9cf24c1acc

View File

@ -79,13 +79,18 @@
remote_src: yes
dest: "{{ nextcloud_webroot }}"
extra_opts: [--strip-components=1]
- name: Create data directory
file:
path: "{{ nextcloud_webroot }}/data"
state: directory
- name: Chown webroot
# Nextcloud docs say Apache needs write access, so it gets write access
file:
path: "{{ nextcloud_webroot }}"
state: directory
recurse: yes
owner: root
group: root
owner: www-data
group: www-data
- name: Cleanup
file:
path: /var/www/nextcloud.tar.bz2