I\'m just getting started with ansible, and I\'m trying to get it to work with the linode
module from OSX Yosemite. I\'m using brew-installed Python, and pip-instal
I was able to fix this on OS X El Capitan 10.11.6 by editing hosts
:
[local]
localhost ansible_python_interpreter=/usr/local/bin/python
You may then need additional Python dependencies:
pip install pycurl
pip install linode-python
It's happening on ubuntu as well, finally figured out the solution. You need to explicity pass path to python executable
Change Ansible hosts file from
[local]
localhost
to
[local]
localhost ansible_python_interpreter=/usr/local/bin/python
or to your virtual environment python path.