alpine: fix condition for loopback interface template

This commit is contained in:
Timotej Lazar 2025-10-22 18:19:12 +02:00
parent 998f2b0598
commit e2c9acd872

View file

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