mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
dont start hostapd when no_net_restart is True
This commit is contained in:
parent
1da4d45509
commit
a9c916e219
1 changed files with 3 additions and 3 deletions
|
@ -28,12 +28,12 @@
|
||||||
state: restarted
|
state: restarted
|
||||||
when: wifi_up_down and can_be_ap and ansible_ap0 is undefined
|
when: wifi_up_down and can_be_ap and ansible_ap0 is undefined
|
||||||
|
|
||||||
- name: Restart hostapd when WiFi is present but not when using WiFi as gateway with wifi_up_down False
|
- name: Restart hostapd when WiFi is present but not when using WiFi as gateway
|
||||||
systemd:
|
systemd:
|
||||||
name: hostapd
|
name: hostapd
|
||||||
state: restarted
|
state: restarted
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
when: hostapd_enabled and (wifi_up_down or not no_net_restart)
|
when: hostapd_enabled and not no_net_restart
|
||||||
|
|
||||||
# 2022-07-22: @jvonau suggests commenting this out as: "we really don't touch
|
# 2022-07-22: @jvonau suggests commenting this out as: "we really don't touch
|
||||||
# any of the config files... netplan.yml renames one file if it's a container
|
# any of the config files... netplan.yml renames one file if it's a container
|
||||||
|
@ -107,7 +107,7 @@
|
||||||
systemd:
|
systemd:
|
||||||
name: hostapd
|
name: hostapd
|
||||||
state: restarted
|
state: restarted
|
||||||
when: hostapd_enabled and wifi_slave.stdout is defined and wifi_slave.stdout == 0
|
when: hostapd_enabled and not no_net_restart and wifi_slave.stdout is defined and wifi_slave.stdout == 0
|
||||||
|
|
||||||
#both interfaces.d and systemd-networkd should have br0 available and Appliance lacks br0
|
#both interfaces.d and systemd-networkd should have br0 available and Appliance lacks br0
|
||||||
#keep an eye on legacy wifi installs where br0 is present but not 'online' with an ip address
|
#keep an eye on legacy wifi installs where br0 is present but not 'online' with an ip address
|
||||||
|
|
Loading…
Reference in a new issue