update conditions for postgresql exporter

This commit is contained in:
Ludovic Cartier 2021-05-26 11:21:44 +02:00
parent 1f15b298a1
commit 7b5a036781

View File

@ -31,7 +31,8 @@
user={{ prometheus_postgres_exporter_user }} user={{ prometheus_postgres_exporter_user }}
password={{ prometheus_postgres_exporter_password }} password={{ prometheus_postgres_exporter_password }}
when: when:
- prometheus_postgres_exporter_enable == "true" - prometheus_postgres_exporter_user is defined
- prometheus_postgres_exporter_password is defined
register: prometheus_postgres_exporter_configuration register: prometheus_postgres_exporter_configuration
- name: 'prometheus | postgresql exporter | configuration' - name: 'prometheus | postgresql exporter | configuration'