From 7b5a0367816ea65a257d942f2cbd62ab0a549224 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Wed, 26 May 2021 11:21:44 +0200 Subject: [PATCH] update conditions for postgresql exporter --- tasks/postgresql_exporter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/postgresql_exporter.yml b/tasks/postgresql_exporter.yml index a63b2f9..18f72d6 100644 --- a/tasks/postgresql_exporter.yml +++ b/tasks/postgresql_exporter.yml @@ -31,7 +31,8 @@ user={{ prometheus_postgres_exporter_user }} password={{ prometheus_postgres_exporter_password }} when: - - prometheus_postgres_exporter_enable == "true" + - prometheus_postgres_exporter_user is defined + - prometheus_postgres_exporter_password is defined register: prometheus_postgres_exporter_configuration - name: 'prometheus | postgresql exporter | configuration'