Files
ansible/roles/dnsmasq/templates/90-domains.conf.j2
T

10 lines
349 B
Django/Jinja
Raw Normal View History

2026-08-16 23:16:49 +00:00
#jinja2: trim_blocks: True, lstrip_blocks: True
{% for item in dnsmasq_managed_group | sort %}
2026-09-20 22:14:56 +00:00
{% 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 %}
2026-08-16 23:16:49 +00:00
host-record={{ entry.name }},{{ ip }}
2026-09-20 22:14:56 +00:00
{% endif %}
{% endfor %}
2026-08-16 23:16:49 +00:00
{% endfor %}