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