- name: Install KVM hypervisor apt packages apt: name: - bridge-utils - cpu-checker - libvirt-clients - libvirt-daemon - qemu - qemu-kvm - qemu-utils - libvirt-daemon-system - libvirt-clients - virtinst - virt-manager - name: Check KVM ok shell: /usr/sbin/kvm-ok register: kvmok # failed_when: kvm-ok - name: Debug KVM ok debug: msg: "{{ kvmok }}" - name: Add user core to libvirt group user: name: core groups: libvirt append: "true" ...