diff options
Diffstat (limited to 'playbooks/provisioning/openstack/custom_image_check.yaml')
-rw-r--r-- | playbooks/provisioning/openstack/custom_image_check.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/custom_image_check.yaml b/playbooks/provisioning/openstack/custom_image_check.yaml new file mode 100644 index 000000000..452e1e4d8 --- /dev/null +++ b/playbooks/provisioning/openstack/custom_image_check.yaml @@ -0,0 +1,9 @@ +--- +- 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." |