handle empty secondary
This commit is contained in:
parent
a3d852d493
commit
4a6642ad45
1 changed files with 2 additions and 0 deletions
|
@ -35,9 +35,11 @@ template:
|
||||||
journal-content: all
|
journal-content: all
|
||||||
dnssec-signing: on
|
dnssec-signing: on
|
||||||
dnssec-policy: default
|
dnssec-policy: default
|
||||||
|
{% if groups.secondary %}
|
||||||
notify: [ {{ groups.secondary | map('extract', hostvars) | map(attribute='ansible_hostname') | join(', ') }} ]
|
notify: [ {{ groups.secondary | map('extract', hostvars) | map(attribute='ansible_hostname') | join(', ') }} ]
|
||||||
acl: [ {{ groups.secondary | map('extract', hostvars) | map(attribute='ansible_hostname') | join(', ') }} ]
|
acl: [ {{ groups.secondary | map('extract', hostvars) | map(attribute='ansible_hostname') | join(', ') }} ]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if inventory_hostname in groups.secondary %}
|
{% if inventory_hostname in groups.secondary %}
|
||||||
master: [ {{ groups.primary | map('extract', hostvars) | map(attribute='ansible_hostname') | join(', ') }} ]
|
master: [ {{ groups.primary | map('extract', hostvars) | map(attribute='ansible_hostname') | join(', ') }} ]
|
||||||
|
|
Loading…
Reference in a new issue