Start role implementing the VMs.

This commit is contained in:
Andreas B. Mundt 2023-01-22 12:02:50 +01:00
parent 0cc41715d8
commit c8bd147d78
4 changed files with 19 additions and 1 deletions

View file

@ -31,6 +31,7 @@
- lmn_mount - lmn_mount
- kde - kde
- lmn_kde - lmn_kde
- lmn_vm
tasks: tasks:
- name: Add local user 'virti' in the 'libvirt' group - name: Add local user 'virti' in the 'libvirt' group

View file

@ -27,7 +27,6 @@
- dia - dia
- vym - vym
- tree - tree
- virt-manager
- libreoffice-l10n-de - libreoffice-l10n-de
- xdg-desktop-portal-kde - xdg-desktop-portal-kde
state: latest state: latest

View file

@ -0,0 +1,4 @@
- name: reload libvirtd
systemd:
name: libvirtd.service
listen: reload libvirtd

View file

@ -0,0 +1,14 @@
---
- name: install libvirt packages
apt:
name:
- libvirt-daemon-system
- virt-manager
state: latest
- name: allow all users to use VMs
lineinfile:
dest: /etc/libvirt/libvirtd.conf
line: 'auth_unix_rw = "none"'
insertafter: '#auth_unix_rw = "polkit"'
notify: reload libvirtd