mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Avoid restarting hostapd unless nec
This commit is contained in:
parent
44675f659a
commit
4dc6643d47
1 changed files with 3 additions and 3 deletions
|
@ -38,19 +38,19 @@
|
|||
name: dhcpcd
|
||||
state: restarted
|
||||
|
||||
- name: Restart the networking service
|
||||
- name: Restart the networking service if appropriate
|
||||
service:
|
||||
name: networking
|
||||
enabled: yes
|
||||
state: restarted
|
||||
when: not nobridge is defined and not no_net_restart
|
||||
|
||||
- name: Restart hostapd when WiFi is present
|
||||
- name: Restart hostapd if appropriate
|
||||
service:
|
||||
name: hostapd
|
||||
enabled: yes
|
||||
state: restarted
|
||||
when: iiab_wireless_lan_iface is defined and hostapd_enabled and iiab_network_mode != "Appliance"
|
||||
when: hostapd_enabled and not manually_toggle_AP and iiab_wireless_lan_iface is defined and iiab_network_mode != "Appliance"
|
||||
|
||||
#- name: dhcp_server may be affected - starting - user choice
|
||||
# service: name={{ dhcp_service2 }} state=started
|
||||
|
|
Loading…
Reference in a new issue