1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Ubuntu - skip restart with DG enabled during install

This commit is contained in:
Jerry Vonau 2017-11-02 21:16:28 -05:00
parent 4a6db98f5b
commit df08c29cfd

View file

@ -1,7 +1,6 @@
- name: restart hostapd when wifi is present
service: name=hostapd state=started
when: iiab_wireless_lan_iface != "none" and hostapd_enabled
# when: iiab_wireless_lan_iface != "none" and hostapd_enabled and iiab_network_mode != "Appliance"
- name: Start named service
service: name={{ dns_service }}
@ -18,10 +17,10 @@
state=stopped
when: squid_install
- name: Restart DansGuardian
- name: Restart DansGuardian - execpt Ubuntu which needs reboot to activate
service: name=dansguardian
state=restarted
when: dansguardian_enabled and dansguardian_install
when: dansguardian_enabled and dansguardian_install and ( not is_ubuntu and iiab_stage|int < 4 )
# Squid get re-loaded with dispatcher.d
- name: Restart Squid service