Use ansible openstack collection
Depends-On: https://review.opendev.org/718431 Depends-On: https://review.opendev.org/718362 Change-Id: I7f82e588e297d85a66c20500adc0b06da895717f
This commit is contained in:
parent
59d86d4346
commit
e07ea77e58
@ -20,7 +20,7 @@
|
||||
ansible_python_interpreter: "{{ trove_service_setup_host_python_interpreter }}"
|
||||
block:
|
||||
- name: Get admin tenant id
|
||||
os_project_info:
|
||||
openstack.cloud.os_project_info:
|
||||
cloud: default
|
||||
name: admin
|
||||
interface: internal
|
||||
@ -32,7 +32,7 @@
|
||||
keystone_admin_tenant_id: "{{ _get_admin_project.openstack_projects[0].id }}"
|
||||
|
||||
- name: Create trove service network
|
||||
os_network:
|
||||
openstack.cloud.os_network:
|
||||
cloud: default
|
||||
validate_certs: "{{ trove_service_net_validate_certs }}"
|
||||
state: present
|
||||
@ -43,11 +43,10 @@
|
||||
project: "{{ keystone_admin_tenant_id }}"
|
||||
wait: yes
|
||||
endpoint_type: "{{ trove_service_net_endpoint_type }}"
|
||||
register: trove_network
|
||||
run_once: true
|
||||
|
||||
- name: Create trove service subnet
|
||||
os_subnet:
|
||||
openstack.cloud.os_subnet:
|
||||
cloud: default
|
||||
validate_certs: "{{ trove_service_net_validate_certs }}"
|
||||
state: present
|
||||
@ -71,7 +70,7 @@
|
||||
ansible_python_interpreter: "{{ trove_service_setup_host_python_interpreter }}"
|
||||
block:
|
||||
- name: Get trove service net id
|
||||
os_networks_info:
|
||||
openstack.cloud.os_networks_info:
|
||||
cloud: default
|
||||
validate_certs: "{{ trove_service_net_validate_certs }}"
|
||||
wait: yes
|
||||
|
Loading…
Reference in New Issue
Block a user