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:
parent
3d1efee5a6
commit
53b884450b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue