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
|
- name: Add rules to rename network interfaces
|
||||||
template:
|
template:
|
||||||
dest: /etc/udev/rules.d/10-network.rules
|
dest: "/etc/systemd/network/10-{{ item.name }}.link"
|
||||||
src: 10-network.rules.j2
|
src: interface.link.j2
|
||||||
mode: 0644
|
mode: "0644"
|
||||||
|
loop: "{{ interfaces | selectattr('mac_address') }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.name }}"
|
||||||
notify: reboot
|
notify: reboot
|
||||||
|
|
||||||
- name: Set hostname
|
- name: Set hostname
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue