I’ve just been bitten by running
pip install boto
ansible-playbook ec2_vol-playbook.yml
and it telling me that boto is not installed.
This is because I’m using homebrew’s python on OS X which is in /usr/local/bin (on my computer) but many modules are hardcoded to use /usr/bin/python
My understanding is the common idiom for python scripts is to use
#!/usr/bin/env python
rather than
#!/usr/bin/python
I’m happy to submit a pull request that just makes each module use env, but would be concerned that it would break something else - if there’s a simpler way to do this in Ansible then I can do that.
Will