🚑: SOA full name + nsd specific host name when necessary
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m26s
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m26s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
$TTL 86400
|
||||
@ IN SOA {{ groups['master_nsdservers'] | first }}. tech.ovh.net. (
|
||||
{% set firstserver = groups['master_nsdservers'] | first %}
|
||||
@ IN SOA {{ hostvars[firstserver].nsd_ansible_host | default(hostvars[firstserver].ansible_host) }}. tech.ovh.net. (
|
||||
{{ dns_serial }}; timestamp serial number
|
||||
28800; Refresh
|
||||
7200; Retry
|
||||
@@ -8,7 +9,7 @@ $TTL 86400
|
||||
)
|
||||
|
||||
{% for server in groups['nsdservers'] %}
|
||||
@ IN NS {{ hostvars[server].ansible_host }}.
|
||||
@ IN NS {{ hostvars[server].nsd_ansible_host | default(hostvars[server].ansible_host) }}.
|
||||
{% endfor %}
|
||||
|
||||
$ORIGIN {{ item.name }}.
|
||||
|
Reference in New Issue
Block a user