Start role implementing the VMs.
This commit is contained in:
parent
0cc41715d8
commit
c8bd147d78
4 changed files with 19 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
|||
- lmn_mount
|
||||
- kde
|
||||
- lmn_kde
|
||||
- lmn_vm
|
||||
|
||||
tasks:
|
||||
- name: Add local user 'virti' in the 'libvirt' group
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
- dia
|
||||
- vym
|
||||
- tree
|
||||
- virt-manager
|
||||
- libreoffice-l10n-de
|
||||
- xdg-desktop-portal-kde
|
||||
state: latest
|
||||
|
|
4
roles/lmn_vm/handlers/main.yml
Normal file
4
roles/lmn_vm/handlers/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- name: reload libvirtd
|
||||
systemd:
|
||||
name: libvirtd.service
|
||||
listen: reload libvirtd
|
14
roles/lmn_vm/tasks/main.yml
Normal file
14
roles/lmn_vm/tasks/main.yml
Normal 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
|
Loading…
Add table
Reference in a new issue