1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

override 'vars' if the hardware is not present

This commit is contained in:
Jerry Vonau 2020-05-03 14:00:20 -05:00
parent d6a4011f5d
commit c2730635a6

View file

@ -4,10 +4,10 @@
enabled: no
masked: no
- name: Disable hostapd when not using ap0 and wifi gateway present
- name: Disable hostapd when not using ap0 and wifi gateway present or no WiFi hardware present
set_fact:
hostapd_enabled: False
when: not wifi_up_down and discovered_wireless_iface == iiab_wan_iface
when: (not wifi_up_down and discovered_wireless_iface == iiab_wan_iface) or discovered_wireless_iface == "none"
- name: Detect current Wifi channel
shell: iw {{ discovered_wireless_iface }} info | grep channel | cut -d' ' -f2