homeserver/roles/mgrote.set_permissions/tasks/main.yml

11 lines
284 B
YAML
Raw Normal View History

---
- 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 }}"