diff --git a/roles/network/tasks/detected_redhat.yml b/roles/network/tasks/detected_redhat.yml index 0936e1f91..6c5ad422f 100644 --- a/roles/network/tasks/detected_redhat.yml +++ b/roles/network/tasks/detected_redhat.yml @@ -31,7 +31,7 @@ has_ifcfg_gw: "{{ item|trim }}" when: ifcfg_gw_device.stdout_lines is defined and item|trim != "" and item|trim != "/etc/sysconfig/network-scripts/ifcfg-LAN" with_items: - - "{{ ifcfg_gw_device.stdout_lines }}" + - "{{ ifcfg_gw_device.stdout_lines }}" ignore_errors: True # returns path @@ -59,7 +59,7 @@ has_wifi_gw: "{{ item|trim }}" when: ifcfg_WAN_wifi.changed and item|trim != "" with_items: - - "{{ ifcfg_WAN_wifi.stdout_lines }}" + - "{{ ifcfg_WAN_wifi.stdout_lines }}" - name: Finding device for WiFi AP gateway - Can Fail shell: egrep -rn DEVICE /etc/sysconfig/network-scripts/{{ has_wifi_gw }} | gawk -F '=' '{print $2}'