From 83817ca34026d126c9b53f39e88310835f68a47e Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 21 Feb 2018 22:28:35 -0600 Subject: [PATCH] roles/bind: Simplify zone allow-update settings Items in the `allow_update` property can use the address match list syntax to specify arbitrary restrictions, including TSIG key names. There is really no need for a special case for key names. --- roles/named/templates/named.zones.j2 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/roles/named/templates/named.zones.j2 b/roles/named/templates/named.zones.j2 index 5fe4755..0fa9261 100644 --- a/roles/named/templates/named.zones.j2 +++ b/roles/named/templates/named.zones.j2 @@ -7,11 +7,7 @@ zone "{{ zone.zone }}" { {% if zone.allow_update|d %} allow-update { {% for auth in zone.allow_update %} -{% if auth.key is defined %} - key {{ auth.key }}; -{% else %} {{ auth }}; -{% endif %} {% endfor %} }; {% endif %}