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
26 lines
741 B
YAML
26 lines
741 B
YAML
---
|
|
- name: Cinder sanity check - create volume
|
|
kolla_toolbox:
|
|
module_name: os_volume
|
|
module_args:
|
|
auth: "{{ openstack_cinder_auth }}"
|
|
state: present
|
|
size: 1
|
|
display_name: kolla_test_volume
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
run_once: True
|
|
delegate_to: "{{ groups['cinder-api'][0] }}"
|
|
when: kolla_enable_sanity_cinder | bool
|
|
|
|
- name: Cinder sanity check - cleanup volume
|
|
kolla_toolbox:
|
|
module_name: os_volume
|
|
module_args:
|
|
auth: "{{ openstack_cinder_auth }}"
|
|
state: absent
|
|
display_name: kolla_test_volume
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
run_once: True
|
|
delegate_to: "{{ groups['cinder-api'][0] }}"
|
|
when: kolla_enable_sanity_cinder | bool
|