This repository has been archived on 2020-08-18. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-09 14:39:38 +00:00
|
|
|
server:
|
|
|
|
local-zone: "redxen.localhost." static
|
|
|
|
{% for host in groups['all'] %}
|
|
|
|
local-data: "{{ host }}.redxen.localhost. 60 IN A {{ hostvars[host]['ansible_ens10']['ipv4']['address'] }}"
|
|
|
|
{% endfor %}
|
|
|
|
|
2020-05-21 18:17:57 +00:00
|
|
|
{% for entry in unbound.internal.local.SRV %}
|
2020-08-18 14:24:44 +00:00
|
|
|
|
|
|
|
{% if entry.rawhost|default(false) %}
|
|
|
|
local-data: "_{{ entry.service }}._tcp.redxen.localhost. 60 IN SRV 0 5 {{ entry.port }} {{ entry.rawhost }}."
|
|
|
|
{% else %}
|
2020-05-09 14:39:38 +00:00
|
|
|
{% for host in groups[entry.group] %}
|
|
|
|
local-data: "_{{ entry.service }}._tcp.redxen.localhost. 60 IN SRV 0 5 {{ entry.port }} {{ host }}.redxen.localhost."
|
|
|
|
{% endfor %}
|
2020-08-18 14:24:44 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2020-05-09 14:39:38 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
2020-05-21 18:17:57 +00:00
|
|
|
{% for entry in unbound.internal.local.A %}
|
2020-05-10 15:04:42 +00:00
|
|
|
{% for host in groups[entry.group] %}
|
|
|
|
local-data: "{{ entry.service }}.redxen.localhost. 60 IN A {{ hostvars[host]['ansible_ens10']['ipv4']['address'] }}"
|
|
|
|
{% endfor %}
|
2020-05-09 14:39:38 +00:00
|
|
|
{% endfor %}
|