Useful api_interface_address variable has been define here: https://github.com/openstack/kolla-ansible/blob/master/ansible/group_vars/all.yml#L57 In order to simplify codebase we must use it as much as possible. Change-Id: I18fec19bf69e05a22a4142a9cd1165eccd022455
19 lines
447 B
YAML
19 lines
447 B
YAML
---
|
|
- name: Creating haproxy mysql user
|
|
kolla_toolbox:
|
|
module_name: mysql_user
|
|
module_args:
|
|
login_host: "{{ api_interface_address }}"
|
|
login_port: "{{ mariadb_port }}"
|
|
login_user: "{{ database_user }}"
|
|
login_password: "{{ database_password }}"
|
|
name: "haproxy"
|
|
password: ""
|
|
host: "%"
|
|
priv: "*.*:USAGE"
|
|
run_once: True
|
|
|
|
- name: Cleaning up facts
|
|
set_fact:
|
|
delegate_host: "bootstraped"
|