summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorSteve Milner <smilner@redhat.com>2017-03-13 12:17:43 -0400
committerSteve Milner <smilner@redhat.com>2017-04-03 09:27:57 -0400
commit3aa41e54b072dde8597db7fd0fc997dfc2002cf1 (patch)
tree1697885fdc598cb6490cd5599282636e4ca7f600 /roles
parent30674233228212609f525dd7bee0d43b5c446d3c (diff)
downloadopenshift-3aa41e54b072dde8597db7fd0fc997dfc2002cf1.tar.gz
openshift-3aa41e54b072dde8597db7fd0fc997dfc2002cf1.tar.bz2
openshift-3aa41e54b072dde8597db7fd0fc997dfc2002cf1.tar.xz
openshift-3aa41e54b072dde8597db7fd0fc997dfc2002cf1.zip
Add openshift_version fact fallback debug messages
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_version/tasks/main.yml18
1 files changed, 14 insertions, 4 deletions
diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml
index d13ed4599..4de36ad1b 100644
--- a/roles/openshift_version/tasks/main.yml
+++ b/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: