handle empty secondary

main
Hannaeko 2023-06-16 11:45:25 +02:00
parent a3d852d493
commit 4a6642ad45
1 changed files with 2 additions and 0 deletions

View File

@ -35,9 +35,11 @@ template:
journal-content: all
dnssec-signing: on
dnssec-policy: default
{% if groups.secondary %}
notify: [ {{ groups.secondary | map('extract', hostvars) | map(attribute='ansible_hostname') | join(', ') }} ]
acl: [ {{ groups.secondary | map('extract', hostvars) | map(attribute='ansible_hostname') | join(', ') }} ]
{% endif %}
{% endif %}
{% if inventory_hostname in groups.secondary %}
master: [ {{ groups.primary | map('extract', hostvars) | map(attribute='ansible_hostname') | join(', ') }} ]