🚑: SOA full name + nsd specific host name when necessary
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m26s

This commit is contained in:
VC
2025-04-09 07:17:00 +02:00
parent 2f10a80086
commit 4299708729
7 changed files with 25 additions and 12 deletions

View File

@@ -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 }}.