diff --git a/roles/knot/templates/etc/knot/knot.conf.j2 b/roles/knot/templates/etc/knot/knot.conf.j2 index e99823a..dec9cc6 100644 --- a/roles/knot/templates/etc/knot/knot.conf.j2 +++ b/roles/knot/templates/etc/knot/knot.conf.j2 @@ -137,7 +137,7 @@ zone: acl: acl-update-{{ updater }} {% endfor %} {% endif %} -{% for replica in zone.replicas + ( (zone.replicate | default({}) )[inventory_hostname] | default([]) ) %} +{% for replica in zone.replicas + ( (zone.replicate | default({}) ).get(inventory_hostname, []) ) %} notify: remote-{{ replica }} {% endfor %} {% endif %}