1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

no_net_restart

This commit is contained in:
Jerry Vonau 2017-11-01 21:25:13 -04:00
parent 3e4ae6b07d
commit 4015a7c8f1
4 changed files with 5 additions and 3 deletions

View file

@ -4,6 +4,7 @@ gui_version: 2
# These entries should never be changed in this file.
# These are defaults for boolean routines,
no_net_restart: False
first_run: False
installing: False
discovered_wan_iface: "none"

View file

@ -12,6 +12,7 @@
set_fact:
rpi_model: "rpi"
is_rpi: True
no_net_restart: True
when: ansible_local.local_facts.os == "raspbian"
- name: Set exFAT enabled for XO laptops

View file

@ -52,5 +52,5 @@
value: '{{ dhcp_service2 }}'
- option: 'dnsmasq_enabled'
value: '{{ dnsmasq_enabled }}'
- option: 'is_rpi'
value: '{{ is_rpi }}'
- option: 'no_net_restart'
value: '{{ no_net_restart }}'

View file

@ -62,7 +62,7 @@
- name: restart the networking service
service: name=networking state=restarted
when: not is_rpi or not is_VM is defined
when: not no_net_restart
- name: restart hostapd when wifi is present
service: name=hostapd state=restarted