ae7f4ddc3e
This patch ads proxysql-config role which is used for generating users and rules configuration. Change-Id: I1fcb0e8040ea55f8f6b8384a56479eabdaf61c33
23 lines
617 B
YAML
23 lines
617 B
YAML
---
|
|
- name: "Copying over {{ proxysql_project }} ProxySQL users config"
|
|
template:
|
|
src: "users.yaml.j2"
|
|
dest: "{{ node_config_directory }}/proxysql/users/{{ proxysql_project }}.yaml"
|
|
mode: "0660"
|
|
become: true
|
|
when:
|
|
- proxysql_config_users | bool
|
|
notify:
|
|
- Restart proxysql container
|
|
|
|
- name: "Copying over {{ proxysql_project }} ProxySQL rules config"
|
|
template:
|
|
src: "rules.yaml.j2"
|
|
dest: "{{ node_config_directory }}/proxysql/rules/{{ proxysql_project }}.yaml"
|
|
mode: "0660"
|
|
become: true
|
|
when:
|
|
- proxysql_config_rules | bool
|
|
notify:
|
|
- Restart proxysql container
|