1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

big hammer on bridging

This commit is contained in:
Jerry Vonau 2017-10-31 17:30:55 -05:00
parent e490693dab
commit c1183cc578

View file

@ -141,20 +141,26 @@
iiab_lan_iface: "{{ discovered_lan_iface }}"
when: 'discovered_lan_iface != "none" and num_lan_interfaces == "1"'
- 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'
# 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_debian'
#- 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
#- 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
set_fact:
iiab_lan_iface: br0
when: iiab_wireless_lan_iface != "none"
iiab_lan_iface: none
when: is_VM is defined
# OK try old gw this is a best guess based on what's in
# /etc/sysconfig/iiab_wan_device's last state intended to