ansible: Add rootnodes in new cluster
[lttng-ci.git] / automation / ansible / roles / libvirt / tasks / main.yml
index a23ce3b855fb9960d3be27fcac57310fbe1d63a8..d773102ce8f1e9180ca063bfa220d7923d8edaf0 100644 (file)
@@ -1,12 +1,20 @@
 ---
 - name: Install virtualization packages
   apt:
-    name: ['qemu-kvm', 'libvirt-daemon-system']
+    name: ['qemu-kvm', 'libvirt-daemon-system', 'python3-libvirt']
 - name: Run libvirtd
   systemd:
     name: libvirtd
     enabled: true
     state: started
+- name: Configure extra libvirt user groups
+  ansible.builtin.user:
+    name: "{{item}}"
+    groups:
+      - libvirt
+      - libvirt-qemu
+    append: true
+  with_items: "{{libvirt_extra_users|default([])}}"
 - name: Download ISOs
   loop: "{{ isos }}"
   get_url:
This page took 0.023285 seconds and 4 git commands to generate.