2023-06-23 08:12:05 +02:00
|
|
|
address: '{{ ip_eth0 }}'
|
2022-07-01 22:02:44 +02:00
|
|
|
records:
|
2023-06-23 08:12:05 +02:00
|
|
|
{% for domain in nsd_zones %}
|
|
|
|
{% set suffix = domain|normalize_family
|
|
|
|
{% set hostnames = nsd["nsd_zone_" + suffix]["hostname_" + suffix]["hostname_" + suffix] %}
|
|
|
|
{% for hostname in hostnames %}
|
|
|
|
{% set type = hostname['type_' + suffix] %}
|
|
|
|
{% if type == 'A' %}
|
|
|
|
{{ hostname }}.{{ domain }}: '{{ hostname['ip_' + suffix] }}'
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|