diff options
Diffstat (limited to 'roles/openshift_openstack/tasks/custom_image_check.yaml')
-rw-r--r-- | roles/openshift_openstack/tasks/custom_image_check.yaml | 10 |
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..4fbd6a687 --- /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: "{{ image }}" + register: image_result + +- name: Check that custom image is available + assert: + that: "image_result.ansible_facts.openstack_image" + msg: "Image {{ image }} is not available." |