From e11032099904dea814ecfeaf40c2e7fed5b5f1fe Mon Sep 17 00:00:00 2001 From: Gregor Michels Date: Sat, 12 Nov 2022 21:38:27 +0100 Subject: [PATCH] accesspoints: added toggle to disable public wifi also disabled public wifi on ANS till offloader works --- ansible-inventory | 1 + templates/accesspoints/etc/config/wireless | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ansible-inventory b/ansible-inventory index 82a15f7..2db7a00 100644 --- a/ansible-inventory +++ b/ansible-inventory @@ -98,6 +98,7 @@ ffl-ans-sw-access02 [site_ans:vars] wifi_ssid="GU Arno-Nitzsche-Strasse" wifi_encryption=none +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') }}" diff --git a/templates/accesspoints/etc/config/wireless b/templates/accesspoints/etc/config/wireless index 124392b..69e9d1c 100644 --- a/templates/accesspoints/etc/config/wireless +++ b/templates/accesspoints/etc/config/wireless @@ -20,6 +20,7 @@ config wifi-iface 'default_radio0' {% if wifi_psk is defined %} option key '{{ wifi_psk }}' {% endif %} + option disabled '{{ wifi_disabled | default(0) }}' config wifi-iface 'backoffice_radio0' option device 'radio0' @@ -53,6 +54,7 @@ config wifi-iface 'default_radio1' {% if wifi_psk is defined %} option key '{{ wifi_psk }}' {% endif %} + option disabled '{{ wifi_disabled | default(0) }}' config wifi-iface 'backoffice_radio1' option device 'radio1'