Updated disable IPv6 logic

Signed-off-by: George Nalen <georgen@mindpointgroup.com>
This commit is contained in:
George Nalen 2025-12-23 11:20:21 -05:00
parent de09b5d150
commit 7ff8e7b6b9
No known key found for this signature in database
GPG key ID: CA43827BF7C4DEBA
4 changed files with 27 additions and 2 deletions

View file

@ -4,4 +4,7 @@
{% 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 %}