mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
updated ipv6 rules
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
8c79bfe7fb
commit
c85e9ba43f
1 changed files with 5 additions and 9 deletions
|
|
@ -3,15 +3,11 @@
|
||||||
# The CIS Control wants IPv6 disabled if not in use.
|
# The CIS Control wants IPv6 disabled if not in use.
|
||||||
# We are using the rhel9cis_ipv6_required to specify if you have IPv6 in use
|
# We are using the rhel9cis_ipv6_required to specify if you have IPv6 in use
|
||||||
- name: "3.1.1 | PATCH | Verify if IPv6 is enabled on the system"
|
- name: "3.1.1 | PATCH | Verify if IPv6 is enabled on the system"
|
||||||
sysctl:
|
debug:
|
||||||
name: "{{ item }}"
|
msg: "Control being set via Handler 'update sysctl' which writes to /etc/sysctl.d/99-sysctl.conf"
|
||||||
value: '1'
|
notify:
|
||||||
state: present
|
- update sysctl
|
||||||
reload: yes
|
- sysctl flush ipv6 route table
|
||||||
with_items:
|
|
||||||
- net.ipv6.conf.all.disable_ipv6
|
|
||||||
- net.ipv6.conf.default.disable_ipv6
|
|
||||||
- net.ipv6.conf.lo.disable_ipv6
|
|
||||||
when:
|
when:
|
||||||
- not rhel9cis_ipv6_required
|
- not rhel9cis_ipv6_required
|
||||||
- rhel9cis_rule_3_1_1
|
- rhel9cis_rule_3_1_1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue