12 lines
442 B
Django/Jinja
12 lines
442 B
Django/Jinja
# Default hosts
|
|
127.0.0.1 localhost.localdomain localhost
|
|
::1 localhost ip6-localhost ip6-loopback
|
|
ff02::1 ip6-allnodes
|
|
ff02::2 ip6-allrouters
|
|
|
|
# Proxmox specific
|
|
{% for host in groups['hypervisors'] %}
|
|
{{ hostvars[host]['ansible_default_ipv4']['address'] }} {{ host }} {{ hostvars[host]['ansible_hostname'] }}
|
|
{{ hostvars[host]['ansible_default_ipv6']['address'] }} {{ host }} {{ hostvars[host]['ansible_hostname'] }}
|
|
{% endfor %}
|