forked from ansible-lockdown/RHEL9-CIS
17 lines
400 B
YAML
17 lines
400 B
YAML
---
|
|
|
|
- name: "3.6 | L2 | PATCH | Disable IPv6"
|
|
replace:
|
|
dest: /etc/default/grub
|
|
regexp: '(^GRUB_CMDLINE_LINUX\s*\=\s*)(?:")(.+)(?<!ipv6.disable=1)(?:")'
|
|
replace: '\1"\2 ipv6.disable=1"'
|
|
follow: yes
|
|
notify: grub2cfg
|
|
when:
|
|
- not rhel9cis_ipv6_required
|
|
- rhel9cis_rule_3_6
|
|
tags:
|
|
- level2-server
|
|
- level2-workstation
|
|
- patch
|
|
- rule_3.6
|