1
0
Fork 0
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:
A Holt 2017-12-29 01:08:01 -05:00 committed by GitHub
parent 44675f659a
commit 4dc6643d47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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