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:
parent
d6a4011f5d
commit
c2730635a6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue