alpine: fix condition for loopback interface template
This commit is contained in:
parent
998f2b0598
commit
e2c9acd872
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue