10 lines
284 B
YAML
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 }}"
|