From 4d9138b8283eced0c5b47865e2023c63a55558c2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 11 Nov 2022 22:34:56 +0100 Subject: ch-pan: deploy new and improved dyndns/server --- roles/network/bind/templates/master-zones.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/network/bind') diff --git a/roles/network/bind/templates/master-zones.j2 b/roles/network/bind/templates/master-zones.j2 index 2e400711..737b5e84 100644 --- a/roles/network/bind/templates/master-zones.j2 +++ b/roles/network/bind/templates/master-zones.j2 @@ -3,6 +3,10 @@ zone "{{ zone }}" { type master; +{% if 'remote_file' in bind_master_zones[zone] %} + file "{{ bind_master_zones[zone].remote_file }}"; +{% else %} file "/etc/bind/db.{{ zone }}"; +{% endif %} }; {% endfor %} -- cgit v1.2.3