Compare commits
No commits in common. "bb71e83d2360798d88c0adf62ed196548d6f44a1" and "2ed912de44adbac871632b65330b66d5b1c78c0c" have entirely different histories.
bb71e83d23
...
2ed912de44
|
@ -1,6 +1,6 @@
|
||||||
# code: language=ansible-jinja
|
# code: language=ansible-jinja
|
||||||
127.0.0.1 localhost
|
127.0.0.1 localhost
|
||||||
{{ ansible_host }} {{ fqdn }}
|
127.0.1.1 {{ hostname }}
|
||||||
|
|
||||||
# The following lines are desirable for IPv6 capable hosts
|
# The following lines are desirable for IPv6 capable hosts
|
||||||
::1 ip6-localhost ip6-loopback
|
::1 ip6-localhost ip6-loopback
|
||||||
|
@ -10,19 +10,7 @@ ff02::1 ip6-allnodes
|
||||||
ff02::2 ip6-allrouters
|
ff02::2 ip6-allrouters
|
||||||
ff02::3 ip6-allhosts
|
ff02::3 ip6-allhosts
|
||||||
|
|
||||||
{% if hostname in groups['virtualservers'] %}
|
# Static hostnames for VMs
|
||||||
# Static hostnames for other VMs
|
|
||||||
{% for host in groups['virtualservers'] %}
|
{% for host in groups['virtualservers'] %}
|
||||||
{{ hostvars[host].private_ip }} {{ hostvars[host].fqdn }}
|
{{ hostvars[host].private_ip }} {{ hostvars[host].fqdn }}
|
||||||
{% endfor %}
|
{% 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 %}
|
|
||||||
|
|
Loading…
Reference in a new issue