How can I change my ansible_python_interpreter value on Ubuntu?
I downloaded and installed Python 2.7.12 from tar, and now it's running by default outside of Ansible
# which python
/usr/local/bin/python
#python --version
Python 2.7.12
But when I try to set the variable, Ansible shows that it's still using that newer version of Python (I need to use this older version to test)
# ansible-playbook --version -e "ansible_python_interpreter=/usr/local/bin/python"
ansible-playbook 2.5.1
config file = /home/fortinet/Downloads/ansible/playbooks/complete_provisioning/ansible.cfg
configured module search path = [u'/home/fortinet/Downloads/ansible/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
root@ubuntu18:/home/fortinet/Downloads/ansible/playbooks/complete_provisioning#