From a0c99ae1baa24e75ae75cebc1fc83bdb7a63b1b0 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 30 Oct 2026 21:23:57 +0100 Subject: [PATCH] Fix recursion configuration check in named.conf.options.gateway.j2 --- roles/common/templates/etc/bind/named.conf.options.gateway.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/common/templates/etc/bind/named.conf.options.gateway.j2 b/roles/common/templates/etc/bind/named.conf.options.gateway.j2 index 1424638..1d4dddc 100644 --- a/roles/common/templates/etc/bind/named.conf.options.gateway.j2 +++ b/roles/common/templates/etc/bind/named.conf.options.gateway.j2 @@ -104,8 +104,8 @@ options { {% endif %} // caching name services -{% if bind9_gateway_recursion is defined and bind9_gateway_recursion|bool %} - recursion {{ bind9_gateway_recursion }}; +{% if bind9_gateway_recursion is defined and bind9_gateway_recursion|string|length > 0 %} + recursion {{ "yes" if bind9_gateway_recursion|bool else "no" }}; {% else %} recursion yes; {% endif %}