--- - 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" delegate_to: "{{ groups['glance-api'][0] }}" run_once: True 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 delegate_to: "{{ groups['glance-api'][0] }}" run_once: True when: kolla_enable_sanity_glance | bool