mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
always detect and report - record enabled
This commit is contained in:
parent
57a9fa85f9
commit
94d80f7ac4
2 changed files with 20 additions and 18 deletions
|
@ -172,3 +172,5 @@
|
|||
value: "{{ iiab_lan_iface }}"
|
||||
- option: iiab_network_mode
|
||||
value: "{{ iiab_network_mode }}"
|
||||
- option: network_enabled
|
||||
value: "{{ network_enabled }}"
|
||||
|
|
|
@ -7,26 +7,26 @@
|
|||
name: firmware
|
||||
when: rpi_model != "none"
|
||||
|
||||
- name: detected_network
|
||||
include_tasks: detected_network.yml
|
||||
|
||||
#- name: "Set 'no_net_restart: True' if discovered_wireless_iface == iiab_wan_iface"
|
||||
- name: "Set 'no_net_restart: True' if has_wifi_gateway is defined"
|
||||
set_fact:
|
||||
no_net_restart: True # 2020-09-12:
|
||||
# 0-init/defaults/main.yml - default boolean value of False
|
||||
# network/tasks/main.yml - changes flag based on conditional present
|
||||
# Var is currently used in 9 subsequent files, to suppress restarting of
|
||||
# hostapd, dnsmasq and/or other networking service in computed_services.yml,
|
||||
# debian.yml, detected_network.yml, down-debian.yml, netplan.yml,
|
||||
# NM-debian.yml, restart.yml, rpi_debian.yml, sysd-netd-debian.yml
|
||||
when: has_wifi_gateway is defined
|
||||
|
||||
- name: computed_network
|
||||
include_tasks: computed_network.yml
|
||||
|
||||
- name: Configuring Network if enabled
|
||||
block:
|
||||
- name: detected_network
|
||||
include_tasks: detected_network.yml
|
||||
|
||||
#- name: "Set 'no_net_restart: True' if discovered_wireless_iface == iiab_wan_iface"
|
||||
- name: "Set 'no_net_restart: True' if has_wifi_gateway is defined"
|
||||
set_fact:
|
||||
no_net_restart: True # 2020-09-12:
|
||||
# 0-init/defaults/main.yml - default boolean value of False
|
||||
# network/tasks/main.yml - changes flag based on conditional present
|
||||
# Var is currently used in 9 subsequent files, to suppress restarting of
|
||||
# hostapd, dnsmasq and/or other networking service in computed_services.yml,
|
||||
# debian.yml, detected_network.yml, down-debian.yml, netplan.yml,
|
||||
# NM-debian.yml, restart.yml, rpi_debian.yml, sysd-netd-debian.yml
|
||||
when: has_wifi_gateway is defined
|
||||
|
||||
- name: computed_network
|
||||
include_tasks: computed_network.yml
|
||||
|
||||
# - name: Configure wondershaper
|
||||
# include_tasks: wondershaper.yml
|
||||
# when: wondershaper_install or wondershaper_installed is defined
|
||||
|
|
Loading…
Reference in a new issue