summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2017-09-26 09:01:59 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2017-09-27 10:56:57 +0200
commitc2c4ba7ec62d4dfd87d746d20991e10f2bd1bddf (patch)
tree3fa169ec1f90659f806ccd4945f94f867e71cd9b
parent96a0bb693434345e0868959d73690d543f3e2e55 (diff)
downloadopenshift-c2c4ba7ec62d4dfd87d746d20991e10f2bd1bddf.tar.gz
openshift-c2c4ba7ec62d4dfd87d746d20991e10f2bd1bddf.tar.bz2
openshift-c2c4ba7ec62d4dfd87d746d20991e10f2bd1bddf.tar.xz
openshift-c2c4ba7ec62d4dfd87d746d20991e10f2bd1bddf.zip
Require openshift_image_tag in the inventory with openshift-enterprise
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--roles/docker/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index 7ece0e061..208ece011 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -10,6 +10,14 @@
l_use_crio: "{{ openshift_use_crio | default(False) }}"
l_use_crio_only: "{{ openshift_use_crio_only | default(False) }}"
+- when:
+ - openshift_deployment_type == 'openshift-enterprise'
+ assert:
+ that:
+ - "openshift_image_tag is defined"
+ msg: >
+ openshift_image_tag is a required inventory variable when installing openshift-enterprise
+
- name: Use Package Docker if Requested
include: package_docker.yml
when: