Swap CNAME for A

This commit is contained in:
Alex 2020-05-10 17:04:42 +02:00
parent bdb4b20d35
commit 7e4eba3ac9
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,8 @@ server:
{% endfor %}
{% endfor %}
{% for entry in services.unbound.internal.local.CNAME %}
local-data: "{{ entry.service }}.redxen.localhost. 60 IN CNAME {{ entry.host }}.redxen.localhost."
{% for entry in services.unbound.internal.local.A %}
{% for host in groups[entry.group] %}
local-data: "{{ entry.service }}.redxen.localhost. 60 IN A {{ hostvars[host]['ansible_ens10']['ipv4']['address'] }}"
{% endfor %}
{% endfor %}