From 1408d9f4ebca39fb018e0d09d464ca2ec102fb94 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Mon, 23 Oct 2017 02:29:22 -0700 Subject: [PATCH] work around for bug --- roles/1-prep/tasks/detected_redhat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/1-prep/tasks/detected_redhat.yml b/roles/1-prep/tasks/detected_redhat.yml index 031a0c030..509339f0b 100644 --- a/roles/1-prep/tasks/detected_redhat.yml +++ b/roles/1-prep/tasks/detected_redhat.yml @@ -44,7 +44,7 @@ - name: Set has ifcfg gw based on on macaddress if found set_fact: has_ifcfg_gw: "{{ ifcfg_gw_mac.stdout|trim }}" - when: ifcfg_gw_mac.changed and ifcfg_gw_mac.stdout != "" + when: ifcfg_gw_mac is defined and ifcfg_gw_mac.changed and ifcfg_gw_mac.stdout != "" # could use something else - name: Find wifi gateway config if present - Can Fail