Skip to content

Commit

Permalink
Fix missing proxysql_global_variables parameters (ansible-collections…
Browse files Browse the repository at this point in the history
…#116)

For when proxysql_admin_bind_address and proxysql_admin_port are overridden.
  • Loading branch information
jpiron authored and markuman committed Dec 22, 2022
1 parent eec7225 commit 4cb8ca1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- roles/proxysql - Missing proxysql_global_variables module parameters (https://github.com/ansible-collections/community.proxysql/pull/116).
6 changes: 6 additions & 0 deletions roles/proxysql/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
- name: proxysql | handler | manage admin config
proxysql_global_variables:
login_host: "{{ proxysql_admin_bind_address }}"
login_port: "{{ proxysql_admin_port }}"
config_file: "~/.my.cnf"
variable: "admin-{{ item.value.variable }}"
value: "{{ item.value.variable_value }}"
Expand All @@ -9,6 +11,8 @@

- name: proxysql | handler | manage mysql config
proxysql_global_variables:
login_host: "{{ proxysql_admin_bind_address }}"
login_port: "{{ proxysql_admin_port }}"
config_file: "~/.my.cnf"
variable: "mysql-{{ item.value.variable }}"
value: "{{ item.value.variable_value }}"
Expand All @@ -17,6 +21,8 @@

- name: proxysql | handler | manage mysql options
proxysql_global_variables:
login_host: "{{ proxysql_admin_bind_address }}"
login_port: "{{ proxysql_admin_port }}"
config_file: "~/.my.cnf"
variable: "mysql-{{ item.value.variable }}"
value: "{{ item.value.variable_value }}"
Expand Down

0 comments on commit 4cb8ca1

Please sign in to comment.