From cf803e3e55eddd1948818614fc859505a0829dce Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 6 Nov 2021 06:03:02 +0100 Subject: [PATCH] Fix conflicting variable names --- roles/prometheus/tasks/prometheus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/prometheus/tasks/prometheus.yml b/roles/prometheus/tasks/prometheus.yml index e5e1e11..b182ba2 100644 --- a/roles/prometheus/tasks/prometheus.yml +++ b/roles/prometheus/tasks/prometheus.yml @@ -21,7 +21,7 @@ mode: 0644 validate: /usr/bin/promtool check rules %s vars: - alert_groups: "{{ hostvars[inventory_hostname] | dict2items | selectattr('key', 'match', '^prometheus_job_.+$') | map(attribute='value') | map(attribute='group', default=prometheus_job_default_group_name) | unique | list }}" + alert_groups: "{{ hostvars[inventory_hostname] | dict2items | selectattr('key', 'match', '^prometheus_job_.+$') | map(attribute='value') | map(attribute='group', default=prometheus_default_group_name) | unique | list }}" jobs: "{{ hostvars[inventory_hostname] | dict2items | selectattr('key', 'match', '^prometheus_job_.+$') | map(attribute='value') | list }}" notify: restart prometheus