--- - name: "install libvirt" ansible.builtin.apt: name: - "dnsmasq" - "libvirt-daemon-system" - "netcat-openbsd" - "qemu-system" install_recommends: false - name: "install zfs storage driver for libvirt" ansible.builtin.apt: name: - "libvirt-daemon-driver-storage-zfs" when: system_extra_libvirt_install_zfs_driver - name: "enable libvirtd" ansible.builtin.systemd: name: "libvirtd" enabled: true - name: "add {{ system_extra_libvirt_user_name }} to group \"libvirt\"" ansible.builtin.user: name: "{{ system_extra_libvirt_user_name }}" groups: "libvirt" append: true