Przeglądaj źródła

Add openshift_version fact fallback debug messages

Steve Milner 8 lat temu
rodzic
commit
3aa41e54b0
1 zmienionych plików z 14 dodań i 4 usunięć
  1. 14 4
      roles/openshift_version/tasks/main.yml

+ 14 - 4
roles/openshift_version/tasks/main.yml

@@ -68,12 +68,22 @@
 # each of this variables *will* be set correctly and can use them per their
 # intended purpose.
 
-- set_fact:
-    openshift_image_tag: v{{ openshift_version }}
+- block:
+  - debug:
+      msg: "openshift_image_tag was not defined. Falling back to v{{ openshift_version }}"
+
+  - set_fact:
+      openshift_image_tag: v{{ openshift_version }}
+
   when: openshift_image_tag is not defined
 
-- set_fact:
-    openshift_pkg_version: -{{ openshift_version }}
+- block:
+  - debug:
+      msg: "openshift_pkg_version was not defined. Falling back to -{{ openshift_version }}"
+
+  - set_fact:
+      openshift_pkg_version: -{{ openshift_version }}
+
   when: openshift_pkg_version is not defined
 
 - fail: