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