debian: fix network interface renaming
To become one with proxmox.
This commit is contained in:
parent
ea1f8f88d0
commit
45d3e6c4ec
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue