aboutsummaryrefslogblamecommitdiffstats
path: root/roles/space_server/templates/avahi/hosts.j2
blob: f87ad4b7fc70ea9a1220100b8925d66f5f3baff8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                          
{% for host in local_hosts %}
{%   if 'mdns' not in host or host.mdns %}
{%     for ip in host.ips | ipv4 %}
{%       if loop.index <= 1 %}
{{ ip }} {{ host.name }}.local
{%       endif %}
{%     endfor %}
{%     for ip in host.ips | ipv6 %}
{%       if loop.index <= 1 %}
{{ ip }} {{ host.name }}.local
{%       endif %}
{%     endfor %}
{%   endif %}
{% endfor %}