From bf1c7bd3abac99fc294375c059b0b1f8be127e4d Mon Sep 17 00:00:00 2001 From: Gregor Michels Date: Mon, 14 Nov 2022 01:35:23 +0100 Subject: [PATCH] accesspoints: fix gateway and dns for ans aps --- ansible-inventory | 1 + templates/accesspoints/etc/config/network | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible-inventory b/ansible-inventory index 84988c9..24e7ba6 100644 --- a/ansible-inventory +++ b/ansible-inventory @@ -107,3 +107,4 @@ wifi_disabled=1 backoffice_wifi_ssid="GU Arno-Nitzsche-Strasse Backoffice" backoffice_wifi_encryption=psk2 backoffice_wifi_psk="{{ lookup('passwordstore', 'wifi/GU_Arno-Nitzsche-Straße_Backoffice') }}" +mgmt_gateway=10.85.1.1 diff --git a/templates/accesspoints/etc/config/network b/templates/accesspoints/etc/config/network index f7143af..c889079 100644 --- a/templates/accesspoints/etc/config/network +++ b/templates/accesspoints/etc/config/network @@ -10,8 +10,8 @@ config interface 'mgmt' option proto 'static' option ipaddr '{{ ip }}' option netmask '255.255.255.0' - option gateway '10.84.1.1' - list dns '10.84.1.1' + option gateway '{{ mgmt_gateway | default(10.84.1.1) }}' + list dns '{{ mgmt_gateway | default(10.84.1.1) }}' config interface 'clients' option type 'bridge'