10 lines
254 B
Django/Jinja
10 lines
254 B
Django/Jinja
127.0.0.1 localhost
|
|
127.0.1.1 node-{{ groups['nodes'].index(inventory_hostname) + 1 }}
|
|
|
|
::1 localhost ip6-localhost ip6-loopback
|
|
ff02::1 ip6-allnodes
|
|
ff02::2 ip6-allrouters
|
|
|
|
{% for item in hostnames %}
|
|
{{ item.ip }} {{ item.name }}
|
|
{% endfor %} |