64 lines
2.0 KiB
Django/Jinja
64 lines
2.0 KiB
Django/Jinja
{% import 'named.conf.functions.j2' as functions with context %}
|
|
{{ ansible_managed | comment }}
|
|
{% if item.options is defined and item.options %}
|
|
options {
|
|
{% filter indent(bind9_config_indent,true)%}
|
|
{% include 'named.conf.options.j2' %}
|
|
{% endfilter %}
|
|
};
|
|
|
|
{% endif %}
|
|
{% if item.acl is defined and item.acl %}
|
|
{% include 'named.conf.acl.j2' %}
|
|
{% endif %}
|
|
{% if item.primaries is defined and item.primaries %}
|
|
{% include 'named.conf.primaries.j2' %}
|
|
{% endif %}
|
|
{% if item.controls is defined and item.controls %}
|
|
{% include 'named.conf.controls.j2' %}
|
|
{% endif %}
|
|
{% if item.include is defined and item.include %}
|
|
{% include 'named.conf.include.j2' %}
|
|
{% endif %}
|
|
{% if item.dlz is defined and item.dlz %}
|
|
{% include 'named.conf.dlz.j2' %}
|
|
{% endif %}
|
|
{% if item.dnssec_policy is defined and item.dnssec_policy %}
|
|
{% include 'named.conf.dnssec-policy.j2' %}
|
|
{% endif %}
|
|
{% if item.dyndb is defined and item.dyndb %}
|
|
{% include 'named.conf.dyndb.j2' %}
|
|
{% endif %}
|
|
{% if item.http is defined and item.http %}
|
|
{% include 'named.conf.http.j2' %}
|
|
{% endif %}
|
|
{% if item.keylist is defined and item.keylist %}
|
|
{% include 'named.conf.key.j2' %}
|
|
{% endif %}
|
|
{% if item.logging is defined and item.logging %}
|
|
{% include 'named.conf.logging.j2' %}
|
|
{% endif %}
|
|
{% if item.parental_agents is defined and item.parental_agents %}
|
|
{% include 'named.conf.parental-agents.j2' %}
|
|
{% endif %}
|
|
{% if item.server is defined and item.server %}
|
|
{% include 'named.conf.server.j2' %}
|
|
{% endif %}
|
|
{% if item.statistics_channels is defined and item.statistics_channels %}
|
|
{% include 'named.conf.statistics-channels.j2' %}
|
|
{% endif %}
|
|
{% if item.tls is defined and item.tls %}
|
|
{% include 'named.conf.tls.j2' %}
|
|
{% endif %}
|
|
{% if item.trust_anchors is defined and item.trust_anchors %}
|
|
{% include 'named.conf.trust-anchors.j2' %}
|
|
{% endif %}
|
|
{% if item.zones is defined and item.zones %}
|
|
{% from 'named.conf.zone.j2' import zones with context %}
|
|
{{ zones(item.zones) }}
|
|
{% endif %}
|
|
{% if item.view is defined and item.view %}
|
|
{% from 'named.conf.view.j2' import view with context %}
|
|
{{ view(item.view) }}
|
|
{% endif %}
|