471985dc2c
With the more recent versions of ansible, we should now use "is" instead of the "|" This should update it. Change-Id: I6fba56fca182349972e8b0ee5452b37aa4090e0c
29 lines
799 B
YAML
29 lines
799 B
YAML
---
|
|
- name: Glance sanity check - create image
|
|
kolla_toolbox:
|
|
module_name: os_image
|
|
module_args:
|
|
auth: "{{ openstack_glance_auth }}"
|
|
name: "glance_sanity_check"
|
|
filename: "/etc/hostname"
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
delegate_to: "{{ groups['glance-api'][0] }}"
|
|
run_once: True
|
|
register: img_create
|
|
retries: 10
|
|
delay: 3
|
|
until: img_create is success
|
|
when: kolla_enable_sanity_glance | bool
|
|
|
|
- name: Glance sanity check - cleanup
|
|
kolla_toolbox:
|
|
module_name: os_image
|
|
module_args:
|
|
auth: "{{ openstack_glance_auth }}"
|
|
name: "glance_sanity_check"
|
|
state: absent
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
delegate_to: "{{ groups['glance-api'][0] }}"
|
|
run_once: True
|
|
when: kolla_enable_sanity_glance | bool
|