diff --git a/roles/proxmox/templates/real.intf.j2 b/roles/proxmox/templates/real.intf.j2 index 1d09fdd..dd5ae50 100644 --- a/roles/proxmox/templates/real.intf.j2 +++ b/roles/proxmox/templates/real.intf.j2 @@ -20,5 +20,8 @@ iface {{ iface.name }} inet {% if iface.name == 'lo' %}loopback{% else %}static{ {% if iface.custom_fields.gateway %} gateway {{ iface.custom_fields.gateway.address | ipaddr('address') }} {% endif %} +{% if iface.name == 'lo' %} + vxlan-local-tunnelip {{ iface.ip_addresses | selectattr('family.value', '==', 4) | map(attribute='address') | sort | first | ipaddr('address') }} +{% endif %} {% endfor %}