2016-03-29 20:50:22 +08:00
|
|
|
---
|
|
|
|
- name: check openstack_auth_url value
|
|
|
|
fail:
|
|
|
|
msg: "openstack_auth_url is missing"
|
|
|
|
when: openstack_auth_url is not defined or openstack_auth_url == ""
|
|
|
|
|
|
|
|
- name: check openstack_username value
|
|
|
|
fail:
|
|
|
|
msg: "openstack_username is missing"
|
|
|
|
when: openstack_username is not defined or openstack_username == ""
|
|
|
|
|
|
|
|
- name: check openstack_password value
|
|
|
|
fail:
|
|
|
|
msg: "openstack_password is missing"
|
|
|
|
when: openstack_password is not defined or openstack_password == ""
|
|
|
|
|
|
|
|
- name: check openstack_region value
|
|
|
|
fail:
|
|
|
|
msg: "openstack_region is missing"
|
|
|
|
when: openstack_region is not defined or openstack_region == ""
|
|
|
|
|
2017-11-05 16:40:41 +08:00
|
|
|
- name: check openstack_tenant_id value
|
2016-03-29 20:50:22 +08:00
|
|
|
fail:
|
2018-08-21 00:51:25 +08:00
|
|
|
msg: "one of openstack_tenant_id or openstack_trust_id must be specified"
|
|
|
|
when: (openstack_tenant_id is not defined or openstack_tenant_id == "") and
|
|
|
|
openstack_trust_id is not defined
|
|
|
|
|
|
|
|
- name: check openstack_trust_id value
|
|
|
|
fail:
|
|
|
|
msg: "one of openstack_tenant_id or openstack_trust_id must be specified"
|
|
|
|
when: (openstack_trust_id is not defined or openstack_trust_id == "") and
|
|
|
|
openstack_tenant_id is not defined
|