mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
10 lines
327 B
Django/Jinja
10 lines
327 B
Django/Jinja
## This file is managed by Ansible, YOUR CHANGES WILL BE LOST!
|
|
|
|
# IPv6 disable
|
|
{% if rhel9cis_rule_3_1_1 and not rhel9cis_ipv6_required %}
|
|
net.ipv6.conf.all.disable_ipv6 = 1
|
|
net.ipv6.conf.default.disable_ipv6 = 1
|
|
{% for interface in ansible_interfaces %}
|
|
net.ipv6.conf.{{ interface }}.disable_ipv6 = 1
|
|
{% endfor %}
|
|
{% endif %}
|