From e06dc8a7b62ad3029503914602401d5f235ce442 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 8 Jul 2026 03:32:42 +0200 Subject: Refactor network role MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove static IPv6 support from network role — all hosts use SLAAC (method=auto). Simplifies NM templates, argument_specs, and resolved.conf. gateway sysctl accept_ra=2 is now unconditional when gateway_enabled. Co-authored-by: Claude.ai --- roles/gateway/templates/99-gateway.conf.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'roles/gateway') diff --git a/roles/gateway/templates/99-gateway.conf.j2 b/roles/gateway/templates/99-gateway.conf.j2 index 54f81f0c..b0f99dd4 100644 --- a/roles/gateway/templates/99-gateway.conf.j2 +++ b/roles/gateway/templates/99-gateway.conf.j2 @@ -1,10 +1,8 @@ {% if gateway_enabled %} net.ipv4.ip_forward=1 net.ipv6.conf.all.forwarding=1 +net.ipv6.conf.{{ gateway_router_interface }}.accept_ra=2 {% else %} net.ipv4.ip_forward=0 net.ipv6.conf.all.forwarding=0 {% endif %} -{% if network_ipv6_address is defined %} -net.ipv6.conf.{{ gateway_router_interface }}.accept_ra={{ 2 if gateway_enabled else 1 }} -{% endif %} -- cgit v1.2.3