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 }}"
|
ansible_python_interpreter: "{{ trove_service_setup_host_python_interpreter }}"
|
||||||
block:
|
block:
|
||||||
- name: Get admin tenant id
|
- name: Get admin tenant id
|
||||||
os_project_info:
|
openstack.cloud.os_project_info:
|
||||||
cloud: default
|
cloud: default
|
||||||
name: admin
|
name: admin
|
||||||
interface: internal
|
interface: internal
|
||||||
@ -32,7 +32,7 @@
|
|||||||
keystone_admin_tenant_id: "{{ _get_admin_project.openstack_projects[0].id }}"
|
keystone_admin_tenant_id: "{{ _get_admin_project.openstack_projects[0].id }}"
|
||||||
|
|
||||||
- name: Create trove service network
|
- name: Create trove service network
|
||||||
os_network:
|
openstack.cloud.os_network:
|
||||||
cloud: default
|
cloud: default
|
||||||
validate_certs: "{{ trove_service_net_validate_certs }}"
|
validate_certs: "{{ trove_service_net_validate_certs }}"
|
||||||
state: present
|
state: present
|
||||||
@ -43,11 +43,10 @@
|
|||||||
project: "{{ keystone_admin_tenant_id }}"
|
project: "{{ keystone_admin_tenant_id }}"
|
||||||
wait: yes
|
wait: yes
|
||||||
endpoint_type: "{{ trove_service_net_endpoint_type }}"
|
endpoint_type: "{{ trove_service_net_endpoint_type }}"
|
||||||
register: trove_network
|
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Create trove service subnet
|
- name: Create trove service subnet
|
||||||
os_subnet:
|
openstack.cloud.os_subnet:
|
||||||
cloud: default
|
cloud: default
|
||||||
validate_certs: "{{ trove_service_net_validate_certs }}"
|
validate_certs: "{{ trove_service_net_validate_certs }}"
|
||||||
state: present
|
state: present
|
||||||
@ -71,7 +70,7 @@
|
|||||||
ansible_python_interpreter: "{{ trove_service_setup_host_python_interpreter }}"
|
ansible_python_interpreter: "{{ trove_service_setup_host_python_interpreter }}"
|
||||||
block:
|
block:
|
||||||
- name: Get trove service net id
|
- name: Get trove service net id
|
||||||
os_networks_info:
|
openstack.cloud.os_networks_info:
|
||||||
cloud: default
|
cloud: default
|
||||||
validate_certs: "{{ trove_service_net_validate_certs }}"
|
validate_certs: "{{ trove_service_net_validate_certs }}"
|
||||||
wait: yes
|
wait: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user