mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
17 lines
401 B
YAML
17 lines
401 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: true
|
|
notify: grub2cfg
|
|
when:
|
|
- not rhel9cis_ipv6_required
|
|
- rhel9cis_rule_3_6
|
|
tags:
|
|
- level2-server
|
|
- level2-workstation
|
|
- patch
|
|
- rule_3.6
|