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:
parent
a8d74fce5b
commit
93d261e73b
4 changed files with 42 additions and 15 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue