diff --git a/cluster_metrics/playbook-grafana.yml b/cluster_metrics/playbook-grafana.yml index ba0203c8..9663da6a 100644 --- a/cluster_metrics/playbook-grafana.yml +++ b/cluster_metrics/playbook-grafana.yml @@ -22,7 +22,7 @@ mysql_db: login_user: "{{ galera_root_user }}" login_password: "{{ galera_root_password }}" - login_host: "127.0.0.1" + login_host: "{{ galera_address|default('127.0.0.1') }}" name: "{{ grafana_db_name }}" state: "present" delegate_to: "{{ groups['galera_all'][0] }}" @@ -30,7 +30,7 @@ mysql_user: login_user: "{{ galera_root_user }}" login_password: "{{ galera_root_password }}" - login_host: "127.0.0.1" + login_host: "{{ galera_address|default('127.0.0.1') }}" name: "{{ grafana_db_user }}" password: "{{ grafana_db_password }}" host: "{{ item }}"