From 3acc2b7649b837a9d1babe30910c1ed834937dfe Mon Sep 17 00:00:00 2001 From: ikkemaniac Date: Wed, 7 Dec 2022 00:07:51 +0100 Subject: [PATCH] fix: prometheus enabled condition --- .../tasks/validate_config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/custom/matrix-prometheus-nginxlog-exporter/tasks/validate_config.yml b/roles/custom/matrix-prometheus-nginxlog-exporter/tasks/validate_config.yml index b8423dc8f..a8eccaeed 100644 --- a/roles/custom/matrix-prometheus-nginxlog-exporter/tasks/validate_config.yml +++ b/roles/custom/matrix-prometheus-nginxlog-exporter/tasks/validate_config.yml @@ -3,8 +3,9 @@ - name: Fail if Prometheus not enabled ansible.builtin.fail: msg: > - You need to enable `matrix_prometheus_enabled` as this roles requires Prometheus for data storage. - when: "not matrix_prometheus_enabled" + You need to set `matrix_prometheus_enabled: true` or configure an external Prometheus database + as this roles requires Prometheus for data storage. + when: not matrix_prometheus_enabled and not matrix_prometheus_nginxlog_exporter_metrics_proxying_enabled - name: Fail if docker image not availble for arch ansible.builtin.fail: