summaryrefslogtreecommitdiffstats
path: root/roles/openshift_openstack/tasks/custom_image_check.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_openstack/tasks/custom_image_check.yaml')
-rw-r--r--roles/openshift_openstack/tasks/custom_image_check.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/openshift_openstack/tasks/custom_image_check.yaml b/roles/openshift_openstack/tasks/custom_image_check.yaml
new file mode 100644
index 000000000..4ae163406
--- /dev/null
+++ b/roles/openshift_openstack/tasks/custom_image_check.yaml
@@ -0,0 +1,10 @@
+---
+- name: Try to get image facts
+ os_image_facts:
+ image: "{{ item }}"
+ register: image_result
+
+- name: Check that custom image is available
+ assert:
+ that: "image_result.ansible_facts.openstack_image"
+ msg: "Image {{ item }} is not available."