Skip to content

Commit

Permalink
Loop over each task. import->includes
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Lehmann <[email protected]>
  • Loading branch information
fallenpixel committed Apr 18, 2024
1 parent 83a3cc5 commit 0a57495
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tasks/Cat2/RHEL-09-25xxxx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,18 @@
- name: "MEDIUM | RHEL-09-251040 | PATCH | RHEL 9 network interfaces must not be in promiscuous mode."
when:
- not rhel9stig_disruption_high
- item not in rhel9stig_promisc_if
- item in rhel9stig_promisc_if
ansible.builtin.debug:
msg: "Warning!! You have interfaces set to promicious mode no in the exception list"
loop: "{{ ansible_facts.interfaces }}"

- name: "MEDIUM | RHEL-09-251040 | PATCH | RHEL 9 network interfaces must not be in promiscuous mode."
when:
- not rhel9stig_disruption_high
- item not in rhel9stig_promisc_if
ansible.builtin.import_tasks:
- item in rhel9stig_promisc_if
ansible.builtin.include_tasks:
file: warning_facts.yml
loop: "{{ ansible_facts.interfaces }}"

- name: "MEDIUM | RHEL-09-251045 | PATCH | RHEL 9 must enable hardening for the Berkeley Packet Filter just-in-time compiler."
when:
Expand Down

0 comments on commit 0a57495

Please sign in to comment.