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'