title: Problems changing Ansible_Python_Interpreter
body: <p>How can I change my <a href="https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#ansible-python-interpreter" rel="nofollow noreferrer">ansible_python_interpreter</a> value on Ubuntu? </p>
  
  <p>I downloaded and installed Python 2.7.12 from tar, and now it's running by default outside of Ansible</p>
  
  <pre><code># which python
  /usr/local/bin/python
  </code></pre>
  
  <pre><code>#python --version
  Python 2.7.12
  </code></pre>
  
  <p>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) </p>
  
  <pre><code># 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#
  </code></pre>