From 689c0cecd97f931bb92a730998fd9cb6be64e9de Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 2 Jul 2020 17:52:53 +0100 Subject: [PATCH] Set permissions on nextcloud data dir --- ansible/roles/intersect-docker/tasks/nextcloud.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/intersect-docker/tasks/nextcloud.yml b/ansible/roles/intersect-docker/tasks/nextcloud.yml index 8291e47..e2eead2 100644 --- a/ansible/roles/intersect-docker/tasks/nextcloud.yml +++ b/ansible/roles/intersect-docker/tasks/nextcloud.yml @@ -40,3 +40,9 @@ chdir: /opt/nextcloud cmd: "{{ docker_update_command }}" when: compose_file.changed or config_file.changed + +- name: Set data dir permissions + cron: + name: Set nextcloud data permissions + special_time: daily + job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /srv/nextcloud-data/data/*