{% 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 %} {% from 'named.conf.key.j2' import keylist with context %} {{ keylist(item.keylist) }} {% endif %} {% if item.logging is defined and item.logging %} {% from 'named.conf.logging.j2' import logging with context %} {{ logging(item.logging) }} {% endif %} {% if item.parental_agents is defined and item.parental_agents %} {% from 'named.conf.parental-agents.j2' import parental_agents with context %} {{ parental_agents(item.parental_agents) -}} {% endif %} {% if item.server is defined and item.server %} {% from 'named.conf.server.j2' import server with context %} {{ server(item.server) }} {% endif %} {% if item.statistics_channels is defined and item.statistics_channels %} {% from 'named.conf.statistics-channels.j2' import statistics_channels with context %} {{ statistics_channels(item.statistics_channels) }} {% endif %} {% if item.tls is defined and item.tls %} {% from 'named.conf.tls.j2' import tls with context %} {{ tls(item.tls) }} {% endif %} {% if item.trust_anchors is defined and item.trust_anchors %} {% from 'named.conf.trust-anchors.j2' import trust_anchors with context %} {{ trust_anchors(item.trust_anchors) }} {% 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 %}