mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
clean Ansible output
This commit is contained in:
parent
a5ebc31991
commit
753752ae9b
1 changed files with 4 additions and 4 deletions
|
@ -27,12 +27,12 @@
|
|||
debug: msg="NO WAN known"
|
||||
when: not has_WAN
|
||||
|
||||
- name: Finding connection name for wifi AP gateway first
|
||||
- name: Finding connection name for WiFi AP gateway first
|
||||
shell: egrep -rn NAME /etc/sysconfig/network-scripts/{{ has_wifi_gw }} | gawk -F '=' '{print $2}'
|
||||
register: ap_name
|
||||
when: has_wifi_gw != "none" and has_ifcfg_gw != "none"
|
||||
|
||||
- name: Trying wifi first
|
||||
- name: Trying WiFi first
|
||||
shell: nmcli conn up id {{ ap_name.stdout }}
|
||||
register: try_wifi
|
||||
ignore_errors: yes
|
||||
|
@ -69,7 +69,7 @@
|
|||
has_WAN: False
|
||||
when: dhcp_WAN is defined and dhcp_WAN|failed and wan_ip == "dhcp"
|
||||
|
||||
- name: interface list
|
||||
- name: Interface list
|
||||
shell: ls /sys/class/net | grep -v -e lo -e br -e tun
|
||||
register: adapter_list
|
||||
|
||||
|
@ -134,7 +134,7 @@
|
|||
### keep at end.
|
||||
### If dhcp fails the single interface will become LAN again because we didn't prevent the creation
|
||||
# Now disable LAN if single interface
|
||||
- name: DHCP found on Single interface forcing LAN disabled.
|
||||
- name: DHCP found on Single interface forcing LAN disabled
|
||||
set_fact:
|
||||
iiab_lan_iface: "none"
|
||||
when: dhcp_good and adapter_count.stdout|int == "1"
|
||||
|
|
Loading…
Reference in a new issue