Skip to content

Commit

Permalink
Added loop control for RHEL-09-232190
Browse files Browse the repository at this point in the history
Signed-off-by: layluke <[email protected]>
  • Loading branch information
layluke committed Sep 28, 2024
1 parent 00c0b2e commit 96742b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/Cat2/RHEL-09-23xxxx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1538,9 +1538,10 @@
when: rhel9stig_sys_commands_owner.stdout | length > 0
ansible.builtin.file:
owner: root
path: "{{ path }}"
loop:
- "{{ rhel9stig_sys_commands_owner.stdout_lines }}"
path: "{{ item }}"
loop: "{{ rhel9stig_sys_commands_owner.stdout_lines }}"
loop_control:
label: "{{ item }}"

- name: "MEDIUM | RHEL-09-232195 | PATCH | RHEL 9 system commands must be group-owned by root or a system account."
when:
Expand Down

0 comments on commit 96742b2

Please sign in to comment.