mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
single interface - strings need to be quoted, add stdout_lines
This commit is contained in:
parent
9b8fda1752
commit
9204c4caf5
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@
|
|||
# LAN - pick non WAN's
|
||||
- name: Create list of LAN (non WAN) ifaces
|
||||
shell: ls /sys/class/net | grep -v -e wwlan -e ppp -e lo -e br0 -e tun -e {{ device_gw }} -e {{ ap_device }}
|
||||
when: num_lan_interfaces != 0
|
||||
when: num_lan_interfaces != "0"
|
||||
register: lan_list_result
|
||||
|
||||
# If 2 interfaces found in gateway mode, with one wifi, declare other to be wan
|
||||
|
@ -114,7 +114,7 @@
|
|||
- name: Set discovered_wired_iface fact if present
|
||||
set_fact:
|
||||
discovered_wired_iface: "{{ item|trim }}"
|
||||
when: item|trim != discovered_wireless_iface and lan_list_result is defined
|
||||
when: lan_list_result.stdout_lines is defined and item|trim != discovered_wireless_iface
|
||||
with_items:
|
||||
- "{{ lan_list_result.stdout_lines }}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue