fixed subnetmask appending to ips

This commit is contained in:
nd 2020-11-04 23:02:23 +01:00
parent 2dc81fdff5
commit ca287d6871
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -5,6 +5,6 @@ ff02::2 ip6-allrouters
{% for n in vm['nics']|default([]) %} {% for n in vm['nics']|default([]) %}
{% for i in vm['nics'][n].protocol if vm['nics'][n].protocol[i].type == "static" %} {% 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 }} {{ vm['nics'][n].protocol[i].options['address'].split('/')[0] }} {{ inventory_hostname }} {{ inventory_hostname_short }}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}