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
|
@ -89,8 +89,6 @@
|
|||
when: groups.localhome is defined and inventory_hostname in groups.localhome
|
||||
- role: lmn_teacherlaptop
|
||||
when: groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop
|
||||
- role: lmn_networkd
|
||||
when: ansible_interfaces | select('search', 'enp.+') | length > 1
|
||||
|
||||
tasks:
|
||||
## Temporary fixes and quirks:
|
||||
|
@ -269,6 +267,13 @@
|
|||
- /etc/sudoers.d/90-lmn-startvirtiofsd
|
||||
- /etc/sudoers.d/90-lmn-link-images
|
||||
- /etc/rsync.secret
|
||||
- /etc/systemd/network/30-virbr1.netdev
|
||||
- /etc/systemd/network/30-virbr2.netdev
|
||||
- /etc/systemd/network/40-ethernet.network
|
||||
- /etc/systemd/network/40-ethernet-usb.network
|
||||
- /etc/systemd/network/50-virbr1.network
|
||||
- /etc/systemd/network/50-virbr2.network
|
||||
- /etc/systemd/network/60-wlan0-dhcp.network
|
||||
|
||||
- name: check if vm_usage_information.txt exists
|
||||
stat: path=/lmn/vm/vm_usage_information.txt
|
||||
|
@ -303,6 +308,12 @@
|
|||
line: 'Listen 192.168.122.1:631'
|
||||
state: absent
|
||||
|
||||
- name: Remove NetworkManager Ansible-Block for non-laptops
|
||||
blockinfile:
|
||||
path: /etc/NetworkManager/NetworkManager.conf
|
||||
state: absent
|
||||
when: groups.laptop is defined and inventory_hostname not in groups.laptop
|
||||
|
||||
## bookworm fixes/hacks:
|
||||
- name: Work around sddm hang on shutdown
|
||||
ansible.builtin.lineinfile:
|
||||
|
@ -361,7 +372,6 @@
|
|||
roles:
|
||||
- role: lmn_wlan_iwd
|
||||
when: ansible_interfaces | select('search', 'wl.+') | first is defined
|
||||
- lmn_networkd
|
||||
- lmn_localuser
|
||||
tasks:
|
||||
- name: Remove deprecated files and directories (laptop-class)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue