Skip to content

Commit 577e108

Browse files
committed
fix: only generate if defined
1 parent af8b458 commit 577e108

File tree

1 file changed

+1
-1
lines changed
  • ansible/roles/prometheus/defaults

1 file changed

+1
-1
lines changed

ansible/roles/prometheus/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ prometheus_services:
9595
--storage.agent.path=/prometheus
9696
{% endif %}
9797
--config.file=/etc/prometheus/prometheus.yml
98-
{% if prometheus_version is version('2.24.0', '>=') %}
98+
{% if prometheus_web_config is defined and prometheus_version is version('2.24.0', '>=') %}
9999
--web.config.file=/etc/prometheus/web.yml
100100
{% endif %}
101101
--web.enable-lifecycle

0 commit comments

Comments
 (0)