Compare commits

..

No commits in common. "bb71e83d2360798d88c0adf62ed196548d6f44a1" and "2ed912de44adbac871632b65330b66d5b1c78c0c" have entirely different histories.

View file

@ -1,6 +1,6 @@
# code: language=ansible-jinja
127.0.0.1 localhost
{{ ansible_host }} {{ fqdn }}
127.0.1.1 {{ hostname }}
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
@ -10,19 +10,7 @@ ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
{% if hostname in groups['virtualservers'] %}
# Static hostnames for other VMs
# Static hostnames for VMs
{% for host in groups['virtualservers'] %}
{{ hostvars[host].private_ip }} {{ hostvars[host].fqdn }}
{% endfor %}
{% elif hostname in groups['control_infr'] %}
# Static hostnames for VM hosts
{% for host in groups['vmhost_infr'] %}
{{ hostvars[host].ansible_host }} {{ hostvars[host].fqdn }}
{% endfor %}
# Static hostnames for VMs
{% for host in groups['virtualservers'] %}
{{ hostvars[host].ansible_host }} {{ hostvars[host].fqdn }}
{% endfor %}
{% endif %}