kolla-ansible/ansible/roles/ceilometer/tasks/register.yml
Jeffrey Zhang 84ade4e149 Remove useless module_extra_vars in registry.yml
- 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
2018-04-16 09:14:54 +08:00

27 lines
852 B
YAML

---
- name: Creating the Ceilometer project, user, and role
kolla_toolbox:
module_name: "kolla_keystone_user"
module_args:
project: "service"
user: "{{ ceilometer_keystone_user }}"
password: "{{ ceilometer_keystone_password }}"
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ openstack_ceilometer_auth }}"
endpoint_type: "{{ openstack_interface }}"
run_once: True
- name: Associate the ResellerAdmin role and ceilometer user
kolla_toolbox:
module_name: "os_user_role"
module_args:
project: "service"
user: "{{ ceilometer_keystone_user }}"
role: "ResellerAdmin"
region_name: "{{ openstack_region_name }}"
auth: "{{ openstack_ceilometer_auth }}"
endpoint_type: "{{ openstack_interface }}"
when: enable_swift | bool
run_once: True