# Pastebin RpjehH2Y --- - hosts: all remote_user: root gather_facts: false tasks: - name: check for python raw: which python register: pypath ignore_errors: True - name: push the binary package raw: pkg install -y python when: pypath|failed