proxmox: fix network interface renaming
Use systemd .link files which are "relatively futureproof" according to https://wiki.debian.org/NetworkInterfaceNames .
This commit is contained in:
parent
59c1431f93
commit
ea1f8f88d0
2 changed files with 11 additions and 3 deletions
|
@ -1,8 +1,11 @@
|
|||
- 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 up bridges
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue