mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 07:23:07 +00:00
updated conditional
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
9c771e03e4
commit
e4275b2131
1 changed files with 2 additions and 5 deletions
|
|
@ -23,18 +23,15 @@
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: false
|
enabled: false
|
||||||
with_items:
|
|
||||||
- iptables
|
|
||||||
- ip6tables
|
|
||||||
when: item in ansible_facts.packages
|
|
||||||
|
|
||||||
- name: "3.4.1.2 | PATCH | Ensure iptables-services not installed with firewalld | remove iptables-services pkg "
|
- name: "3.4.1.2 | PATCH | Ensure iptables-services not installed with firewalld | remove iptables-services pkg "
|
||||||
package:
|
package:
|
||||||
name: iptables-services
|
name: iptables-services
|
||||||
state: absent
|
state: absent
|
||||||
when: "'iptables-services' in ansible_facts.packages"
|
when:
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_3_4_1_2
|
- rhel9cis_rule_3_4_1_2
|
||||||
|
- "'iptables-services' in ansible_facts.packages"
|
||||||
tags:
|
tags:
|
||||||
- level1-server
|
- level1-server
|
||||||
- level1-workstation
|
- level1-workstation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue