Files
ansible-bind9-role/templates/named.conf.parental-agents.j2
Daniel Akulenok 8db883cba9 feat: Initialize BIND9 Ansible role
- Add complete role structure with templates
- Create comprehensive README documentation
- Set up Travis CI configuration
- Add meta information and default variables
2022-08-04 12:41:40 +02:00

10 lines
440 B
Django/Jinja

{% macro parental_agents(parental_agents) %}
{% for agent in parental_agents if parental_agents is iterable %}
parental-agents {{ agent.name -}}
{{ (' port ' + agent.port | string) if agent.port is defined and agent.port -}}
{{ (' dscp ' + agent.dscp | string) if agent.dscp is defined and agent.dscp }} {
{% filter indent(2, true) %}
{{ functions.list_address_port_key_tls(agent.addresses) -}}
{% endfilter %}};
{% endfor %}
{% endmacro %}