From 756bc7749319c40b7dd826db382523f341674cfe Mon Sep 17 00:00:00 2001 From: Alexander Gorelyshev Date: Thu, 25 Dec 2025 21:28:03 +0400 Subject: [PATCH] Fix incorrect variable name preventing DNS configuration on the Hub --- roles/wg_hub/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/wg_hub/tasks/main.yml b/roles/wg_hub/tasks/main.yml index 1734a21..0bd9aaf 100644 --- a/roles/wg_hub/tasks/main.yml +++ b/roles/wg_hub/tasks/main.yml @@ -28,7 +28,7 @@ PrivateKey = {{ wg_hub_wg_pkey }} PreUp = sysctl -w net.ipv4.ip_forward=1 - {% if dns_server is defined %} + {% if wg_hub_dns_server is defined %} PostUp = resolvectl dns %i {{ wg_hub_dns_server }}; resolvectl domain %i {{ wg_hub_iface_name }}.local {% endif %} PostDown = sysctl -w net.ipv4.ip_forward=0