mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Clarif: manually_toggle_AP used in hostapd.yml & rpi_debian.yml
This commit is contained in:
parent
2d6d510e63
commit
a2ab1b79cc
1 changed files with 14 additions and 13 deletions
|
@ -7,18 +7,19 @@
|
|||
- network #REMOVE SUCH LINES (BELOW TOO) AS WE'RE IN "network" ?
|
||||
- network-discover
|
||||
|
||||
# manually_toggle_AP is used in hostapd.yml and in rpi_debian.yml's dhcpcd.conf.j2 (both below)
|
||||
- name: Enable manually_toggle_AP if WiFi is primary gateway
|
||||
set_fact:
|
||||
manually_toggle_AP: true
|
||||
when: discovered_wireless_iface == iiab_wan_iface
|
||||
when: discovered_wireless_iface == iiab_wan_iface and not reboot_to_AP
|
||||
|
||||
- name: RPi - reboot to AP post install - installed via wifi so the services are ready
|
||||
set_fact:
|
||||
iiab_lan_iface: br0
|
||||
iiab_wan_iface: "{{ discovered_wired_iface }}"
|
||||
iiab_wireless_lan_iface: "{{ discovered_wireless_iface }}"
|
||||
iiab_wired_lan_iface: ""
|
||||
when: is_rpi and discovered_wireless_iface is defined and discovered_wireless_iface == iiab_wan_iface and reboot_to_AP
|
||||
#- name: RPi - reboot to AP post install - installed via wifi so the services are ready
|
||||
# set_fact:
|
||||
# iiab_lan_iface: br0
|
||||
# iiab_wan_iface: "{{ discovered_wired_iface }}"
|
||||
# iiab_wireless_lan_iface: "{{ discovered_wireless_iface }}"
|
||||
# iiab_wired_lan_iface: ""
|
||||
# when: is_rpi and discovered_wireless_iface is defined and discovered_wireless_iface == iiab_wan_iface and reboot_to_AP
|
||||
|
||||
- include_tasks: computed_network.yml
|
||||
when: not installing #REMOVE THIS LINE IF installing IS ALWAYS false AS SET IN roles/0-init/defaults/main.yml
|
||||
|
@ -31,11 +32,11 @@
|
|||
- network
|
||||
- AP
|
||||
|
||||
- name: RPi - don't reboot to AP post install - installed via wifi - don't blow away current network
|
||||
set_fact:
|
||||
no_net_restart: True
|
||||
hostapd_enabled: False
|
||||
when: is_rpi and discovered_wireless_iface is defined and discovered_wired_iface != iiab_wan_iface
|
||||
#- name: RPi - don't reboot to AP post install - installed via wifi - don't blow away current network
|
||||
# set_fact:
|
||||
# no_net_restart: True
|
||||
# hostapd_enabled: False
|
||||
# when: is_rpi and discovered_wireless_iface is defined and discovered_wired_iface != iiab_wan_iface
|
||||
|
||||
##### Start static ip address info for first run #####
|
||||
#- include_tasks: static.yml
|
||||
|
|
Loading…
Reference in a new issue