diff --git a/roles/bind-authoritative/templates/bind/named.conf.local.j2 b/roles/bind-authoritative/templates/bind/named.conf.local.j2 index 0f7603c1..c84b3356 100644 --- a/roles/bind-authoritative/templates/bind/named.conf.local.j2 +++ b/roles/bind-authoritative/templates/bind/named.conf.local.j2 @@ -15,7 +15,7 @@ key "certbot_challenge." { // Crans zones {% for zone in bind.zones %} zone "{{ zone }}" { - {% if bind.master %} + {% if bind.master -%} type master; file "/var/local/re2o-services/dns/generated/dns.{{ zone }}.zone"; forwarders { @@ -32,7 +32,7 @@ zone "{{ zone }}" { grant certbot_challenge. name _acme-challenge.{{ zone }} txt; }; notify yes; - {% else %} + {% else -%} type slave; file "bak.{{ zone }}"; masters { @@ -40,7 +40,7 @@ zone "{{ zone }}" { }; allow-transfer { "none"; }; notify no; - {% endif %} +{% endif -%} }; {% endfor %}