Initial commit

This commit is contained in:
nd 2017-11-15 00:24:29 +01:00
commit bd5282ad87
3 changed files with 31 additions and 0 deletions

10
templates/hosts.j2 Normal file
View file

@ -0,0 +1,10 @@
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
{% for n in vm['nics']|default([]) %}
{% for i in vm['nics'][n].protocol if vm['nics'][n].protocol[i].type == "static" %}
{{vm['nics'][n].protocol[i].options['address']}} {{ inventory_hostname }} {{ inventory_hostname_short }}
{% endfor %}
{% endfor %}