1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

move ignore_errors after register

This commit is contained in:
Jerry Vonau 2017-09-21 23:17:20 -05:00
parent 3d1efee5a6
commit 53b884450b

View file

@ -54,8 +54,8 @@
# could use something else
- name: Find wifi gateway config if present - Can Fail
shell: egrep -rn ESSID /etc/sysconfig/network-scripts/ifcfg* | gawk -F ':' '{print $1}' | gawk -F '/' '{print $5}'
ignore_errors: True
register: ifcfg_WAN_wifi
ignore_errors: True
#returns file name
- name: Setting has_wifi_gw based on ESSID if found - Can Fail
@ -67,8 +67,8 @@
- name: Finding device for wifi AP gateway - Can Fail
shell: egrep -rn DEVICE /etc/sysconfig/network-scripts/{{ has_wifi_gw }} | gawk -F '=' '{print $2}'
ignore_errors: True
register: AP_device
ignore_errors: True
when: has_wifi_gw != "none" and has_ifcfg_gw != "none"
- name: Setting wifi device