Create libvirt role for virtualization
This commit is contained in:
parent
cbc40e2f82
commit
9edd467239
15
roles/libvirt/tasks/main.yml
Normal file
15
roles/libvirt/tasks/main.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- name: Install QEMU/KVM
|
||||||
|
apt:
|
||||||
|
name: qemu-kvm
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install Libvirt
|
||||||
|
apt:
|
||||||
|
name: ["libvirt-clients", "libvirt-daemon-system"]
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Add user to libvirt group
|
||||||
|
user:
|
||||||
|
name: "{{ libvirt_user }}"
|
||||||
|
groups: libvirt
|
||||||
|
append: yes
|
Loading…
Reference in New Issue
Block a user