1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

numbers should not have quotes

This commit is contained in:
Jerry Vonau 2017-11-02 11:06:45 -05:00
parent 26aa57537f
commit 18d66e47f4

View file

@ -36,7 +36,7 @@
- name: setting wan_in_interfaces
set_fact:
wan_in_interfaces: True
when: is_debuntu and wan_file.stdout|int >= "0"
when: is_debuntu and wan_file.stdout|int >= 0
# WIRELESS -- if any wireless is detected as gateway, it becomes WAN
- name: Look for any wireless interfaces
@ -144,7 +144,7 @@
- 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
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:
@ -154,17 +154,17 @@
- 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" and is_rpi
when: iiab_wired_lan_iface is defined and num_lan_interfaces == 1 and is_rpi
- 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" and is_rpi
when: iiab_wireless_lan_iface is defined and num_lan_interfaces == 1 and 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_rpi
when: discovered_lan_iface != "none" and num_lan_interfaces >= 2 and not is_rpi
- name: in VM disable LAN - needs local_vars entry to activate
set_fact:
@ -211,5 +211,7 @@
value: '{{ gui_static_wan }}'
- option: 'dhcpcd_result'
value: '{{ dhcpcd_result }}'
- option: 'iiab_lan'
- option: 'wan_in_interfaces'
value: '{{ wan_in_interfaces }}'
- option: 'iiab_lan_iface'
value: '{{ iiab_lan_iface }}'