ansible-playbooks/roles/unbound/templates/custom-lan.conf.j2
2025-07-25 20:23:54 +02:00

10 lines
277 B
Django/Jinja

# {{ ansible_managed }}
view:
name: "lan"
{% for host, ips in unbound_custom_lan_records.items() %}
local-data: "{{ host }}. IN A {{ ips.v4 }}"
{% if ips.v6 is defined %}
local-data: "{{ host }}. IN AAAA {{ ips.v6 }}"
{% endif %}
{% endfor %}