mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +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
|
||||
|
||||
- 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
|
||||
ignore_errors: True
|
||||
when: discovered_wireless_iface != "none"
|
||||
|
||||
- name: Set Wifi Region country code for hostapd when present
|
||||
set_fact:
|
||||
host_country_code: "{{ REG_DOM }}"
|
||||
host_country_code: "{{ REG_DOM.stdout }}"
|
||||
when: REG_DOM is defined and REG_DOM.stdout | length > 0
|
||||
|
||||
- name: Clone wifi if needed
|
||||
|
|
Loading…
Reference in a new issue