refactor: add loop_control labels to dict-based loops across all roles
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
ansible.builtin.stat:
|
||||
path: "{{ item.path }}"
|
||||
loop: "{{ cis_permission_targets }}"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
register: cis_permission_stats
|
||||
changed_when: false
|
||||
|
||||
@@ -13,4 +15,6 @@
|
||||
group: "{{ item.item.group | default(omit) }}"
|
||||
mode: "{{ item.item.mode }}"
|
||||
loop: "{{ cis_permission_stats.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.item.path }}"
|
||||
when: item.stat.exists
|
||||
|
||||
Reference in New Issue
Block a user