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

re-enable bridging for non-RPi

This commit is contained in:
Jerry Vonau 2017-11-01 15:43:19 -05:00
parent e467df273e
commit 73b6937c8e

View file

@ -141,33 +141,32 @@
# moved to detected_redhat
# use value only if present
- name: Setting wired LAN as only interface
- name: For Debian, always use bridging - except RPi
set_fact:
iiab_lan_iface: br0
when: 'discovered_lan_iface != "none" and num_lan_interfaces >= "1" and is_debuntu' and not is_rpi
- name: WiFi is on the LAN - use bridging - except RPi
set_fact:
iiab_lan_iface: br0
when: iiab_wireless_lan_iface != "none" and not is_rpi
- name: Setting wired LAN as only interface - RPi
set_fact:
iiab_lan_iface: "{{ iiab_wired_lan_iface }}"
when: iiab_wired_lan_iface is defined and num_lan_interfaces == "1"
when: iiab_wired_lan_iface is defined and num_lan_interfaces == "1" and is_rpi
- name: Setting wireless LAN as only interface
- name: Setting wireless LAN as only interface - RPi
set_fact:
iiab_lan_iface: "{{ iiab_wireless_lan_iface }}"
when: iiab_wireless_lan_iface is defined and num_lan_interfaces == "1"
when: iiab_wireless_lan_iface is defined and num_lan_interfaces == "1" and is_rpi
# big hammer for now
#- name: For Debian, always use bridging
# set_fact:
# iiab_lan_iface: br0
# when: 'discovered_lan_iface != "none" and num_lan_interfaces >= "1" and is_debuntu'
- name: 2 or more devices on the LAN - use bridging
set_fact:
iiab_lan_iface: br0
when: 'discovered_lan_iface != "none" and num_lan_interfaces >= "2" and not is_rpi'
#- name: 2 or more devices on the LAN - use bridging
# set_fact:
# iiab_lan_iface: br0
# when: 'discovered_lan_iface != "none" and num_lan_interfaces >= "2" and not is_debian'
#- name: WiFi is on the LAN - use bridging
# set_fact:
# iiab_lan_iface: br0
# when: iiab_wireless_lan_iface != "none"
- name: in VM disable bridging
- name: in VM disable LAN - needs local_vars entry to activate
set_fact:
iiab_lan_iface: none
when: is_VM is defined