This commit is contained in:
s3lph 2021-02-06 00:17:38 +01:00
parent e12a8f6981
commit 05eab6666c

View file

@ -38,7 +38,7 @@ remote:
{% for remote in ( (zones | map(attribute='replicas') ) + (zones | map(attribute='masters') ) ) | flatten | unique %} {% for remote in ( (zones | map(attribute='replicas') ) + (zones | map(attribute='masters') ) ) | flatten | unique %}
- id: remote-{{ remote }} - id: remote-{{ remote }}
{% if knot_tsig_key is defined and 'knot_tsig_key' in hostvars[remote %} {% if knot_tsig_key is defined and 'knot_tsig_key' in hostvars[remote] %}
{# only use TSIG mutually, i.e. if both parties have a key #} {# only use TSIG mutually, i.e. if both parties have a key #}
key: {{ knot_tsig_key.name }} key: {{ knot_tsig_key.name }}
{% endif %} {% endif %}