
This patchset allows users to select the context in which certain osconfig tasks run, rather than a hard-coded assumption. It also adds scripts directories which are run in these contexts. Change-Id: I695c3078b4d883a506c243bc715a509f6844c126
10 lines
310 B
YAML
10 lines
310 B
YAML
- name: "File Permissions | Modifying file or directory permissions for {{ item.name }}"
|
|
file:
|
|
path: "{{ item.name }}"
|
|
state: file
|
|
mode: "{{ item.permissions }}"
|
|
owner: "{{ item.owner }}"
|
|
group: "{{ item.group }}"
|
|
loop: "{{ file_permissions }}"
|
|
when: run_context in item.run_contexts
|