Ansible fails with /bin/sh: 1: /usr/bin/python: not found
I stumbled upon this error running ansible on Ubuntu 15.10 server, because it ships with Python 3.4.3 and ansible requires Python 2. This is how my provision.yml looks now: – hosts: my_app sudo: yes remote_user: root gather_facts: no pre_tasks: – name: ‘install python2’ raw: sudo apt-get -y install python tasks: – name: ‘ensure user {{ … Read more