# how to prevent Ansible to change ansible\_python\_interpreter after execution

**URL:** <https://forum.ansible.com/t/how-to-prevent-ansible-to-change-ansible-python-interpreter-after-execution/29901>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [March 18, 2019, 11:23am UTC](https://forum.ansible.com/t/how-to-prevent-ansible-to-change-ansible-python-interpreter-after-execution/29901 "2019-03-18T11:23:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cassell](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@cassell](https://forum.ansible.com/u/cassell)\
**Post date:** [March 18, 2019, 11:23am UTC](https://forum.ansible.com/t/how-to-prevent-ansible-to-change-ansible-python-interpreter-after-execution/29901/1 "2019-03-18T11:23:56Z")

</div>

> Hi,
> 
> I'm using Zsh and PyEnv. I Pip install the Ansible
> 
> I had set ansible\_python\_interpreter to my own PYTHON, in the Inventory  
> file.

ansible\_playbook\_python is the path to the python executable used to invoke the Ansible command line tool

[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_variables.html](https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html)

V/r,  
James Cassell
