mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
the intent is to not restart hostapd during wifi installs
This commit is contained in:
parent
c2730635a6
commit
5bd975db5e
1 changed files with 7 additions and 2 deletions
|
@ -1,9 +1,14 @@
|
|||
- name: Restart hostapd when WiFi is present
|
||||
#iiab_wireless_lan_iface(wlan0) - wifi_up_down False needs hw
|
||||
#iiab_wireless_lan_iface(ap0) - wifi_up_down True needs hw
|
||||
#hostapd_enabled False - set in hostapd.yml to avoid the enable with wifi_up_down False
|
||||
#no_net_restart: True - main.yml discovered_wireless_iface == iiab_wan_iface
|
||||
- name: Restart hostapd when WiFi is present but not when using WiFi as gateway
|
||||
systemd:
|
||||
name: hostapd
|
||||
state: restarted
|
||||
# when: iiab_wireless_lan_iface is defined and hostapd_enabled and discovered_wireless_iface != iiab_wan_iface
|
||||
when: hostapd_enabled and iiab_wireless_lan_iface is defined and discovered_wireless_iface == iiab_wireless_lan_iface
|
||||
# when: hostapd_enabled and iiab_wireless_lan_iface is defined and discovered_wireless_iface == iiab_wireless_lan_iface
|
||||
when: hostapd_enabled and not no_net_restart
|
||||
|
||||
- name: Start named service
|
||||
systemd:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue