mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +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 entries should never be changed in this file.
|
||||||
# These are defaults for boolean routines,
|
# These are defaults for boolean routines,
|
||||||
|
no_net_restart: False
|
||||||
first_run: False
|
first_run: False
|
||||||
installing: False
|
installing: False
|
||||||
discovered_wan_iface: "none"
|
discovered_wan_iface: "none"
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
rpi_model: "rpi"
|
rpi_model: "rpi"
|
||||||
is_rpi: True
|
is_rpi: True
|
||||||
|
no_net_restart: True
|
||||||
when: ansible_local.local_facts.os == "raspbian"
|
when: ansible_local.local_facts.os == "raspbian"
|
||||||
|
|
||||||
- name: Set exFAT enabled for XO laptops
|
- name: Set exFAT enabled for XO laptops
|
||||||
|
|
|
@ -52,5 +52,5 @@
|
||||||
value: '{{ dhcp_service2 }}'
|
value: '{{ dhcp_service2 }}'
|
||||||
- option: 'dnsmasq_enabled'
|
- option: 'dnsmasq_enabled'
|
||||||
value: '{{ dnsmasq_enabled }}'
|
value: '{{ dnsmasq_enabled }}'
|
||||||
- option: 'is_rpi'
|
- option: 'no_net_restart'
|
||||||
value: '{{ is_rpi }}'
|
value: '{{ no_net_restart }}'
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
- name: restart the networking service
|
- name: restart the networking service
|
||||||
service: name=networking state=restarted
|
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
|
- name: restart hostapd when wifi is present
|
||||||
service: name=hostapd state=restarted
|
service: name=hostapd state=restarted
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue