diff --git a/roles/libvirt/tasks/main.yml b/roles/libvirt/tasks/main.yml new file mode 100644 index 0000000..4fbc312 --- /dev/null +++ b/roles/libvirt/tasks/main.yml @@ -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