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:
parent
a2d31595b5
commit
422b1c0197
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue