1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

set 'host_country_code' to value found in wpa_supplicant.conf

host_country_code becomes a fallback value if undetected
This commit is contained in:
Jerry Vonau 2022-04-14 08:21:41 -05:00
parent a2d31595b5
commit 422b1c0197

View file

@ -25,6 +25,11 @@
register: country_code
ignore_errors: True
- name: Set country code for hostapd to value found in /etc/wpa_supplicant/wpa_supplicant.conf
set_fact:
host_country_code: "{{ country_code.stdout }}"
when: country_code is defined and country_code.stdout != ""
- name: Put country code ({{ host_country_code }}) in /etc/wpa_supplicant/wpa_supplicant.conf if nec
lineinfile:
path: /etc/wpa_supplicant/wpa_supplicant.conf