alpine: fix condition for loopback interface template

This commit is contained in:
Timotej Lazar 2025-10-22 18:19:12 +02:00 committed by Gašper Fele-Žorž
parent 181f49c977
commit 028f89a98a

View file

@ -1,5 +1,5 @@
{# Loopback interface must be present so define it here if none exists. #} {# Loopback interface must be present so create it here if none is defined in inventory. #}
{% if interfaces | rejectattr("name", "==", "lo") %} {% if not interfaces | selectattr("name", "==", "lo") %}
auto lo auto lo
iface lo iface lo