12 lines
393 B
YAML
12 lines
393 B
YAML
address: '{{ ip_eth0 }}'
|
|
records:
|
|
{% 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 %}
|