fix(configuration): omit interface-name when not explicitly provided to avoid predictable naming mismatch

This commit is contained in:
sandwich committed 2026-02-21 08:29:24 +01:00
1 parent d84b867cef
commit 494f0b58b2
3 files changed
+5 -7

No files matched your search

+1 -6
View File
@@ -2,12 +2,7 @@
- name: Copy NetworkManager keyfile per interface
vars:
configuration_iface: "{{ item }}"
configuration_iface_name: >-
{{
item.name
if (item.name | default('') | string | length) > 0
else (configuration_detected_interfaces[idx] | default('eth' ~ idx))
}}
configuration_iface_name: "{{ item.name | default('') }}"
configuration_net_uuid: "{{ ('LAN-' ~ idx ~ '-' ~ hostname) | ansible.builtin.to_uuid }}"
ansible.builtin.template:
src: network.j2