From 2bee86c79e71c91172c8bb7409f0abaa0c014d6d Mon Sep 17 00:00:00 2001 From: pgrondek Date: Mon, 6 Jul 2020 15:34:33 +0200 Subject: [PATCH] Add virtual role --- roles/virtual/tasks/libvirt.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 roles/virtual/tasks/libvirt.yml diff --git a/roles/virtual/tasks/libvirt.yml b/roles/virtual/tasks/libvirt.yml new file mode 100644 index 0000000..6e01cc6 --- /dev/null +++ b/roles/virtual/tasks/libvirt.yml @@ -0,0 +1,19 @@ +--- +- name: install libvirt packages + become: yes + apt: + update_cache: yes + pkg: + - virt-viewer + - virt-manager + - qemu-kvm + - libvirt-daemon-system + - libvirt-clients + - bridge-utils + +- name: ensure that your user is added to the group libvirtd + become: yes + user: + name: "{{ ansible_user_id }}" + append: yes + groups: libvirt, kvm