--- - when: ansible_os_family != 'Darwin' and ansible_os_family != 'Windows' include_tasks: Linux.yaml - when: ansible_os_family == 'Windows' include_tasks: Windows.yaml - name: install homebrew package when: ansible_os_family == 'Darwin' homebrew: name: tea state: latest