diff --git a/roles/prometheus/tasks/configure.yml b/roles/prometheus/tasks/configure.yml index e374664c3..dfb705f4e 100644 --- a/roles/prometheus/tasks/configure.yml +++ b/roles/prometheus/tasks/configure.yml @@ -60,7 +60,7 @@ notify: - restart prometheus become: true - when: prometheus_version is version('3.0.0', '<') + when: "lookup('ansible.builtin.fileglob', {{ prometheus_local_cache_path }}/consoles) != []" tags: - prometheus - configure