You can set the ansible_python_interpreter for a host in the inventory file, but it would be nice if I it would read this in from an $ANSIBLE_PYTHON_INTERPRETER environment variable. I use homebrew-ed Python on my local machine, and I’d love to just add a line to my dotfiles instead of having to add
[local]
localhost ansible_python_interpreter=/usr/local/bin/python
to an inventory file for each playbook. Is there another way I should be doing this? Does anyone else have any thoughts? If it seems like a good idea I’d be happy to try and put something together.
Thanks!
Josh Conner