From 479b60f27059ddc79abeeda3f09ddb7e7e53a792 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Sun, 25 Oct 2026 16:42:58 +0100 Subject: [PATCH] Fix effective ACL mask for writable Nextcloud storage --- .../tasks/nextcloud_external_access.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ansible/roles/profile_atlas/tasks/nextcloud_external_access.yml b/ansible/roles/profile_atlas/tasks/nextcloud_external_access.yml index 4cf7ba3..33c9064 100644 --- a/ansible/roles/profile_atlas/tasks/nextcloud_external_access.yml +++ b/ansible/roles/profile_atlas/tasks/nextcloud_external_access.yml @@ -74,6 +74,18 @@ state: present loop: "{{ atlas_nextcloud_external_mounts }}" +- name: Restore effective web write access inside writable external storage + ansible.posix.acl: + path: "{{ item.source }}" + etype: mask + permissions: rwX + recursive: true + follow: false + recalculate_mask: no_mask + state: present + loop: "{{ atlas_nextcloud_external_mounts }}" + when: not item.readonly + - name: Inherit web access on new files and directories ansible.posix.acl: path: "{{ item.source }}"