diff --git a/roles/1-prep/tasks/detected_redhat.yml b/roles/1-prep/tasks/detected_redhat.yml index a74fd5f07..031a0c030 100644 --- a/roles/1-prep/tasks/detected_redhat.yml +++ b/roles/1-prep/tasks/detected_redhat.yml @@ -6,7 +6,7 @@ - name: Setting ifcfg-WAN True set_fact: has_WAN: True - when: has_ifcfg_WAN.stat.exists + when: has_ifcfg_WAN.stat is defined and has_ifcfg_WAN.stat.exists # DETECT -- gateway and wireless - name: Get a list of slaves from previous config - Can Fail