1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

use shell

This commit is contained in:
Jerry Vonau 2023-04-16 19:20:11 -05:00
parent 7845a8bddc
commit 3ae4627956

View file

@ -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