forked from ansible-lockdown/RHEL9-CIS
with_items to loop
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
9fe177f9ce
commit
10a6a2e0dd
4 changed files with 10 additions and 6 deletions
|
|
@ -62,7 +62,9 @@
|
|||
mode: "0600"
|
||||
owner: root
|
||||
group: root
|
||||
loop: tipc # note the item used in the template
|
||||
loop:
|
||||
- tipc
|
||||
# note the item used in the template
|
||||
|
||||
- name: "3.1.3 | PATCH | Ensure TIPC is disabled | blacklist"
|
||||
ansible.builtin.lineinfile:
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
ansible.builtin.systemd:
|
||||
name: "{{ item }}"
|
||||
masked: true
|
||||
loop: firewalld
|
||||
loop:
|
||||
- firewalld
|
||||
when:
|
||||
- item in ansible_facts.packages
|
||||
- rhel9cis_firewall == 'nftables'
|
||||
|
|
@ -30,7 +31,8 @@
|
|||
ansible.builtin.systemd:
|
||||
name: "{{ item }}"
|
||||
masked: true
|
||||
loop: nftables
|
||||
loop:
|
||||
- nftables
|
||||
when:
|
||||
- item in ansible_facts.packages
|
||||
- rhel9cis_firewall == 'firewalld'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue