--- - name: install iptables-nft ansible.builtin.shell: yes | pacman --noprogressbar --needed --sync iptables-nft when: ansible_distribution == "Archlinux" - name: install libvirt ansible.builtin.package: name: - cdrtools - dnsmasq - ebtables - libvirt state: present - name: append current user to virt groups ansible.builtin.user: name: "{{ libvirt_workstation_user }}" groups: "{{ item }}" append: true loop: - kvm - libvirt