Skip to content

Commit a3c25f4

Browse files
committed
fixed nested lists #81 thank to @layluke
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
1 parent 789bd84 commit a3c25f4

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

tasks/Cat2/RHEL-09-23xxxx.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,7 @@
873873
ansible.builtin.file:
874874
mode: 'u+x,go-w'
875875
path: "{{ item }}"
876-
loop:
877-
- "{{ rhel9stig_system_command_permissions.stdout_lines }}"
876+
loop: "{{ rhel9stig_system_command_permissions.stdout_lines }}"
878877

879878
- name: "MEDIUM | RHEL-09-232015 | PATCH | RHEL 9 library directories must have mode 755 or less permissive."
880879
when:
@@ -900,8 +899,7 @@
900899
ansible.builtin.file:
901900
mode: 'u+x,go-w'
902901
path: "{{ item }}"
903-
loop:
904-
- "{{ rhel9stig_library_directory_perms.stdout_lines }}"
902+
loop: "{{ rhel9stig_library_directory_perms.stdout_lines }}"
905903

906904
- name: "MEDIUM | RHEL-09-232020 | PATCH | RHEL 9 library files must have mode 755 or less permissive."
907905
when:

tasks/Cat2/RHEL-09-4xxxxx.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@
226226
when: rhel9stig_duplicate_gids is defined or rhel9stig_gid_exists is defined
227227
ansible.builtin.debug:
228228
msg: "Warning!! Issues with primary user groups have been found Please investigate"
229-
loop:
230-
- "{{ rhel9stig_duplicate_gids.stdout_lines }}"
229+
loop: "{{ rhel9stig_duplicate_gids.stdout_lines }}"
231230

232231
- name: "MEDIUM | RHEL-09-411045 | WARN | All RHEL 9 interactive users must have a primary group that exists.."
233232
when:

tasks/Cat2/RHEL-09-67xxxx.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
- rhel9stig_non_fips_hashed_accounts.stdout | length > 0
2929
- rhel9stig_disruption_high
3030
ansible.builtin.shell: "passwd -l {{ item }}"
31-
loop:
32-
- "{{ rhel9stig_non_fips_hashed_accounts.stdout_lines }}"
31+
loop: "{{ rhel9stig_non_fips_hashed_accounts.stdout_lines }}"
3332

3433
- name: "MEDIUM | RHEL-09-671015 | AUDIT | RHEL 8 must employ FIPS 140-2 approved cryptographic hashing algorithms for all stored passwords. | Message out user accounts"
3534
when:

0 commit comments

Comments
 (0)