diff --git a/roles/dnsbl_exporter/templates/etc/prometheus/dnsbl-exporter/targets.ini.j2 b/roles/dnsbl_exporter/templates/etc/prometheus/dnsbl-exporter/targets.ini.j2 index f1a2214..aa50194 100644 --- a/roles/dnsbl_exporter/templates/etc/prometheus/dnsbl-exporter/targets.ini.j2 +++ b/roles/dnsbl_exporter/templates/etc/prometheus/dnsbl-exporter/targets.ini.j2 @@ -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 %} \ No newline at end of file +{% endif %} +{% endfor %} \ No newline at end of file