mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
use shell
This commit is contained in:
parent
7845a8bddc
commit
3ae4627956
1 changed files with 2 additions and 2 deletions
|
@ -88,14 +88,14 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
|
||||||
- name: Detect WiFi country code in use
|
- name: Detect WiFi country code in use
|
||||||
command: iw reg get | grep country | grep -v UNSET | awk '{print $2}' | sed "s|:||"
|
shell: iw reg get | grep country | grep -v UNSET | awk '{print $2}' | sed "s|:||"
|
||||||
register: REG_DOM
|
register: REG_DOM
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
when: discovered_wireless_iface != "none"
|
when: discovered_wireless_iface != "none"
|
||||||
|
|
||||||
- name: Set Wifi Region country code for hostapd when present
|
- name: Set Wifi Region country code for hostapd when present
|
||||||
set_fact:
|
set_fact:
|
||||||
host_country_code: "{{ REG_DOM }}"
|
host_country_code: "{{ REG_DOM.stdout }}"
|
||||||
when: REG_DOM is defined and REG_DOM.stdout | length > 0
|
when: REG_DOM is defined and REG_DOM.stdout | length > 0
|
||||||
|
|
||||||
- name: Clone wifi if needed
|
- name: Clone wifi if needed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue