From d8afed3b981d1c0b98716ef51137626ef22c8454 Mon Sep 17 00:00:00 2001 From: "tom.chivert" Date: Thu, 20 Jul 2023 11:50:47 +0200 Subject: [PATCH] syntax --- tasks/exporter/_common.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/exporter/_common.yml b/tasks/exporter/_common.yml index 33e6d6e..adb3469 100644 --- a/tasks/exporter/_common.yml +++ b/tasks/exporter/_common.yml @@ -49,7 +49,7 @@ state: directory path: /tmp/prometheus_exporter/{{ exporter }} when: > - not stat_result.stat.exists or exporter_upgrade == "yes" + (not stat_result.stat.exists or exporter_upgrade == "yes") and prometheus_exporters_sources == "origin" tags: [ 'prometheus_{{ exporter }}' ]