alpine: rename network interfaces
Mostly relevant for VMs, to match the names with proxmox.
This commit is contained in:
parent
d5db7529dd
commit
312cd8d4b3
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,19 @@
|
|||
- name: Tell ifupdown to rename network interfaces
|
||||
copy:
|
||||
dest: /etc/network/if-pre-up.d/nameif
|
||||
content: |
|
||||
#!/bin/sh
|
||||
nameif -s
|
||||
mode: 0755
|
||||
notify: restart networking
|
||||
|
||||
- name: Configure interface names
|
||||
template:
|
||||
dest: /etc/mactab
|
||||
src: mactab.j2
|
||||
mode: 0644
|
||||
notify: restart networking
|
||||
|
||||
- name: Set up network interfaces
|
||||
template:
|
||||
dest: /etc/network/interfaces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue