debian: fix network interface renaming

To become one with proxmox.
This commit is contained in:
Timotej Lazar 2025-08-13 16:29:37 +02:00
parent ea1f8f88d0
commit 45d3e6c4ec

View file

@ -5,9 +5,12 @@
- name: Add rules to rename network interfaces
template:
dest: /etc/udev/rules.d/10-network.rules
src: 10-network.rules.j2
mode: 0644
dest: "/etc/systemd/network/10-{{ item.name }}.link"
src: interface.link.j2
mode: "0644"
loop: "{{ interfaces | selectattr('mac_address') }}"
loop_control:
label: "{{ item.name }}"
notify: reboot
- name: Set hostname