Files
ansible/roles/dnsmasq/templates/90-domains.conf.j2
T
2026-09-20 22:14:56 +00:00

10 lines
349 B
Django/Jinja

#jinja2: trim_blocks: True, lstrip_blocks: True
{% for item in dnsmasq_managed_group | sort %}
{% for entry in hostvars[item].dnsmasq | default([]) %}
{% set ip = entry.ip | default(hostvars[entry.ip_from].container_ip if entry.ip_from is defined else none) %}
{% if ip %}
host-record={{ entry.name }},{{ ip }}
{% endif %}
{% endfor %}
{% endfor %}