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:
parent
3e4ae6b07d
commit
4015a7c8f1
4 changed files with 5 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue