Network devices are now only managed by NetworkManager.

Systemd-networkd is no longer used.
NetworkManager creates a MACVTAP device for each physical Ethernet device.
When calling vm-run with option macvtap, all macvtap-devices are passed to the VM.
This commit is contained in:
Raphael Dannecker 2024-05-23 09:58:41 +02:00
parent a8d74fce5b
commit 93d261e73b
4 changed files with 42 additions and 15 deletions

View file

@ -33,11 +33,16 @@
[Security]
Passphrase={{ wifipasswd }}
- name: Enable systemd-networkd
ansible.builtin.systemd:
name: systemd-networkd.service
enabled: True
- name: Use iwd (NetworkManager)
blockinfile:
dest: /etc/NetworkManager/NetworkManager.conf
block: |
[device]
match-device=interface-name:wl*
wifi.backend=iwd
[connection]
match-device=interface-name:wl*
ipv4.route-metric=2048
- name: Provide service to enable WiFi on boot
ansible.builtin.copy: