knot: use explicit ansible_facts reference

This commit is contained in:
lilly 2026-06-06 14:58:56 +02:00
commit 3a09c107b9
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -1,7 +1,7 @@
# {{ ansible_managed }}
network:
ethernets:
{%- for i_iface_name in ansible_interfaces -%}
{%- for i_iface_name in ansible_facts["interfaces"] -%}
{%- if i_iface_name != "lo" -%}
{%- set i_iface = ansible_facts[i_iface_name] %}