So I started hacking the ec2.py inventory script to add “localhost” as one of the groups … I had to do this because one of the playbooks I run references both localhost and some ec2 stuff.
Anyhow, I was also trying to set the ansible_python_interpreter from there, but it doesn’t get picked up during the playbook run. It does get picked up if I specify the variable directly in the playbook.
Any thoughts as to why it’s not working? snipped below:
https://gist.github.com/4421106
Thanks,
James