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 }}' ]