webapps/nextcloud: Set owner and mode once mounted

This commit is contained in:
Alexis Ben Miloud--Josselin 2023-12-07 09:42:34 +01:00 committed by William Hirigoyen
parent df05c9550b
commit 2bc83052b8

View file

@ -47,3 +47,10 @@
fstype: ext4
opts: defaults,noexec,nosuid,nodev,relatime,lazytime
state: mounted
- name: Set volume's root permissions and ownership
ansible.builtin.file:
path: "{{ nextcloud_data }}"
owner: "{{ nextcloud_user }}"
group: "{{ nextcloud_user }}"
mode: "0700"