aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks/libvirt.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/workstation/tasks/libvirt.yml')
-rw-r--r--roles/workstation/tasks/libvirt.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/workstation/tasks/libvirt.yml b/roles/workstation/tasks/libvirt.yml
new file mode 100644
index 0000000..36d3fa5
--- /dev/null
+++ b/roles/workstation/tasks/libvirt.yml
@@ -0,0 +1,17 @@
+- name: install libvirt
+ package:
+ name:
+ - cdrtools
+ - dnsmasq
+ - ebtables
+ - libvirt
+ state: present
+
+- name: append current user to virt groups
+ user:
+ name: "{{ workstation_user }}"
+ groups: "{{ item }}"
+ append: true
+ loop:
+ - kvm
+ - libvirt
remember that computers suck.