Files
ansible/hypervisors/roles/proxmox6_prerequisite/templates/hosts.j2
2019-09-04 09:06:55 +02:00

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 %}