First commit
This commit is contained in:
11
hypervisors/roles/proxmox6_prerequisite/templates/hosts.j2
Normal file
11
hypervisors/roles/proxmox6_prerequisite/templates/hosts.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
# 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 %}
|
Reference in New Issue
Block a user