1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Clarif: manually_toggle_AP used in hostapd.yml & rpi_debian.yml

This commit is contained in:
A Holt 2017-12-28 19:39:29 -05:00 committed by GitHub
parent 2d6d510e63
commit a2ab1b79cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,18 +7,19 @@
- network #REMOVE SUCH LINES (BELOW TOO) AS WE'RE IN "network" ? - network #REMOVE SUCH LINES (BELOW TOO) AS WE'RE IN "network" ?
- network-discover - 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 - name: Enable manually_toggle_AP if WiFi is primary gateway
set_fact: set_fact:
manually_toggle_AP: true 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 #- name: RPi - reboot to AP post install - installed via wifi so the services are ready
set_fact: # set_fact:
iiab_lan_iface: br0 # iiab_lan_iface: br0
iiab_wan_iface: "{{ discovered_wired_iface }}" # iiab_wan_iface: "{{ discovered_wired_iface }}"
iiab_wireless_lan_iface: "{{ discovered_wireless_iface }}" # iiab_wireless_lan_iface: "{{ discovered_wireless_iface }}"
iiab_wired_lan_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 # 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 - 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 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 - network
- AP - AP
- name: RPi - don't reboot to AP post install - installed via wifi - don't blow away current network #- name: RPi - don't reboot to AP post install - installed via wifi - don't blow away current network
set_fact: # set_fact:
no_net_restart: True # no_net_restart: True
hostapd_enabled: False # hostapd_enabled: False
when: is_rpi and discovered_wireless_iface is defined and discovered_wired_iface != iiab_wan_iface # when: is_rpi and discovered_wireless_iface is defined and discovered_wired_iface != iiab_wan_iface
##### Start static ip address info for first run ##### ##### Start static ip address info for first run #####
#- include_tasks: static.yml #- include_tasks: static.yml