- hosts: localhost tasks: - name: install git package: name: git when: ansible_distribution != "MacOSX"