84ade4e149
- remove uesless module_extra_vars, this is a historical issue. In the past, we use 'docker exec kolla_toolbox ansible xxx' to run module on target node, so complex data have to pass through extra_vars. Now we are using kolla_toolbox module, no need to use extra_vars anymore. - Remove some useless until. Change-Id: I72ed28001202917f9a82a1c3ea33cd6319911ec8
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
---
|
|
- name: Creating the Designate service and endpoint
|
|
kolla_toolbox:
|
|
module_name: "kolla_keystone_service"
|
|
module_args:
|
|
service_name: "designate"
|
|
service_type: "dns"
|
|
description: "Designate DNS Service"
|
|
endpoint_region: "{{ openstack_region_name }}"
|
|
url: "{{ item.url }}"
|
|
interface: "{{ item.interface }}"
|
|
region_name: "{{ openstack_region_name }}"
|
|
auth: "{{ openstack_designate_auth }}"
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
run_once: True
|
|
with_items:
|
|
- {'interface': 'admin', 'url': '{{ designate_admin_endpoint }}'}
|
|
- {'interface': 'internal', 'url': '{{ designate_internal_endpoint }}'}
|
|
- {'interface': 'public', 'url': '{{ designate_public_endpoint }}'}
|
|
|
|
- name: Creating the Designate project, user, and role
|
|
kolla_toolbox:
|
|
module_name: "kolla_keystone_user"
|
|
module_args:
|
|
project: "service"
|
|
user: "{{ designate_keystone_user }}"
|
|
password: "{{ designate_keystone_password }}"
|
|
role: "admin"
|
|
region_name: "{{ openstack_region_name }}"
|
|
auth: "{{ openstack_designate_auth }}"
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
run_once: True
|