Beautify template output

This commit is contained in:
Dryusdan 2024-03-12 13:49:15 +01:00
parent 92f923d1c7
commit adfd191c6e

View file

@ -27,7 +27,7 @@ server:
# or the source address of replies could be wrong.
# Use ip-transparent to be able to list addresses that turn on later.
{% for ip in nsd_ip_listen %}
ip-address: {{ ip }}
ip-address: {{ ip }}
{% endfor %}
# ip-address: 1.2.3.4@5678
# ip-address: 12fe::8ef0
@ -203,23 +203,22 @@ key:
{% for zone in zones %}
zone:
name: "{{ zone.name }}"
{% if zone.dnssec is defined and zone.dnssec is sameas false %}
{% if zone.dnssec is defined and zone.dnssec is sameas false -%}
zonefile: "/etc/nsd/zones/{{ zone.name }}.zone"
{% else %}
{% else -%}
zonefile: "/etc/nsd/zones/{{ zone.name }}.zone.signed"
{% endif %}
{% if zone.slaves is defined %}
{% for slave in zone.slaves %}
{% if zone.secret is defined %}
{% if slave.nokey is defined %}
{% if slave.nokey is defined %}
notify: {{ slave.ip }} NOKEY
provide-xfr: {{ slave.ip }} NOKEY
{% else %}
{% else %}
notify: {{ slave.ip }} {{ zone.name }}-key
provide-xfr: {{ slave.ip }} {{ zone.name }}-key
{% endif %}
{% endif %}
{% else %}
notify: {{ slave.ip }} NOKEY
provide-xfr: {{ slave.ip }} NOKEY