mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
cleaner
This commit is contained in:
parent
3b9940c16e
commit
eab8010b0a
1 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@
|
|||
iiab_demo_mode: True
|
||||
when: teamviewer_install and not strict_networking
|
||||
|
||||
- name: XO wants usb wifi interface as AP mode
|
||||
- name: XO laptop wants USB WiFi interface as AP mode
|
||||
set_fact:
|
||||
iiab_wireless_lan_iface: "{{ discovered_lan_iface }}"
|
||||
when: num_wifi_interfaces >= "2" and xo_model != "none" and discovered_wan_iface != "none" and discovered_wireless_iface == "eth0"
|
||||
|
@ -32,7 +32,7 @@
|
|||
gui_static_wan_ip: undefined
|
||||
when: gui_static_wan_ip != "unset" and not gui_static_wan
|
||||
|
||||
- name: undo gui-static-wan by requesting new template file
|
||||
- name: Undo gui-static-wan by requesting new template file
|
||||
set_fact:
|
||||
has_WAN: False
|
||||
when: gui_static_wan_ip != "unset" and not gui_static_wan
|
||||
|
@ -81,7 +81,7 @@
|
|||
when: discovered_wan_iface != "none" and num_lan_interfaces == "0" and gui_desired_network_role is defined and gui_desired_network_role == "LanController"
|
||||
|
||||
# override with user_wan_iface setting if no longer in auto
|
||||
- name: setting user WAN fact
|
||||
- name: Setting user WAN fact
|
||||
set_fact:
|
||||
iiab_wan_iface: "{{ user_wan_iface }}"
|
||||
when: user_wan_iface != "auto"
|
||||
|
@ -136,11 +136,11 @@
|
|||
when: 'user_lan_iface != "auto"'
|
||||
|
||||
# so this works
|
||||
- name: interface count
|
||||
- name: Interface count
|
||||
shell: ls /sys/class/net | grep -v -e lo | wc | awk '{print $1}'
|
||||
register: adapter_count
|
||||
|
||||
# well if there ever was a point to tell the user thing are FUBAR this is it.
|
||||
# well if there ever was a point to tell the user things are FUBAR this is it.
|
||||
- name: We're hosed no work interfaces
|
||||
set_fact:
|
||||
iiab_network_mode: "No_network_found"
|
||||
|
|
Loading…
Reference in a new issue