56374206be
When deploying with tls enabled in public endpoints, ansible modules fails due SSL certificates are self-signed. This change adds a new variable to allow customization on which endpoints ansible should connect. Defaults to admin because admin auth parameters defaults to admin endpoint. Change-Id: Ic3ed58cf9c9579cae08a11bbfe6fce983b5a9cbc Closes-Bug: #1720995
25 lines
720 B
YAML
25 lines
720 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
|
|
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
|