homeserver/roles/mgrote.set_permissions/tasks/main.yml
2022-08-06 11:20:05 +02:00

10 lines
284 B
YAML

---
- name: ensure permissions are set
ansible.builtin.file:
path: "{{ item.path }}"
owner: "{{ item.owner | default(omit) }}"
group: "{{ item.group | default(omit) }}"
mode: "{{ item.mode }}"
when:
- dir_permissions is defined
loop: "{{ dir_permissions }}"