- name: Desktop installation and configuration hosts: desktop roles: - role: linux_desktop when: ansible_system == 'Linux' - role: darwin_desktop when: ansible_system == 'Darwin'