From 9d4cf24ca753fad201e73aa5e804f8c3dfdca0bb Mon Sep 17 00:00:00 2001
From: Jean-Philippe Evrard <jean-philippe@evrard.me>
Date: Wed, 11 Apr 2018 13:37:26 +0200
Subject: [PATCH] Do not log passwords

This prevents data to be leaked into the callback plugin.

Change-Id: I3c3b03c18c547824ae1f4ac3272f5b2f8142dec0
---
 cluster_metrics/playbook-grafana.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cluster_metrics/playbook-grafana.yml b/cluster_metrics/playbook-grafana.yml
index 9663da6a..c9b313c2 100644
--- a/cluster_metrics/playbook-grafana.yml
+++ b/cluster_metrics/playbook-grafana.yml
@@ -26,6 +26,7 @@
         name: "{{ grafana_db_name }}"
         state: "present"
       delegate_to: "{{ groups['galera_all'][0] }}"
+      no_log: true
     - name: Grant access to the DB for the service
       mysql_user:
         login_user: "{{ galera_root_user }}"
@@ -37,6 +38,7 @@
         state: "present"
         priv: "{{ grafana_db_name }}.*:ALL"
       delegate_to: "{{ groups['galera_all'][0] }}"
+      no_log: true
       with_items:
         - "localhost"
         - "%"