--- - hosts: all vars: archlinux: '{{ ansible_facts["os_family"] == "Archlinux" }}' roles: - dotfiles - { name: "install aur packages", role: aur_packages, when: archlinux is true, tags: ["aur", "aur-packages"], }