mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-11-22 17:51:01 +01:00
fix jinja error
This commit is contained in:
parent
53c7a9ca75
commit
36d668ef4a
1 changed files with 1 additions and 1 deletions
|
@ -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') | unique | default([prometheus_job_default_group_name]) }}"
|
||||
alert_groups: "{{ hostvars[inventory_hostname] | dict2items | selectattr('key', 'match', '^prometheus_job_.+$') | map(attribute='value') | map(attribute='group') | select('defined') | unique | default([prometheus_job_default_group_name]) }}"
|
||||
jobs: "{{ hostvars[inventory_hostname] | dict2items | selectattr('key', 'match', '^prometheus_job_.+$') | map(attribute='value') | list }}"
|
||||
notify: restart prometheus
|
||||
|
||||
|
|
Loading…
Reference in a new issue