1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-10-22 19:36:59 +02:00

dnsbl exporter: fix targets.ini

This commit is contained in:
s3lph 2020-11-22 02:13:07 +01:00
parent 86428966c1
commit 89614cdaa2

View file

@ -1,8 +1,8 @@
{{ ansible_managed | comment }}
[targets]
{%- for host in hostvars.keys() %}
{%- if hostvars[host].monitor_dnsbl | default(true) %}
{% for host in hostvars.keys() %}
{% if hostvars[host].monitor_dnsbl | default(false) %}
server={{ host }}
{%- endif %}
{%- endfor %}
{% endif %}
{% endfor %}