ansible-role-bind/templates/named.conf.local.j2
2017-10-15 01:11:49 +02:00

19 lines
431 B
Django/Jinja
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# {{ ansible_managed }}
{% for zone, value in bind_zones.iteritems() %}
zone "{{ zone }}" IN {
type master;
{% if 'dnssec' in value and value.dnssec %}
file "/etc/bind/zones/db.{{ zone }}.signed";
{% else %}
file "/etc/bind/zones/db.{{ zone }}";
{% endif %}
{% if 'allow_transfer' in value and value.dnssec %}
allow-transfer {
{% for ip in value.allow_transfer %}
{{ ip }};
{% endfor %}
};
{% endif %}
};
{% endfor %}