# Point ansible to my new version of Python

**URL:** <https://forum.ansible.com/t/point-ansible-to-my-new-version-of-python/24110>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [March 31, 2017, 4:19am UTC](https://forum.ansible.com/t/point-ansible-to-my-new-version-of-python/24110 "2017-03-31T04:19:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [March 31, 2017, 4:19am UTC](https://forum.ansible.com/t/point-ansible-to-my-new-version-of-python/24110/1 "2017-03-31T04:19:48Z")

</div>

ansible\_python\_interpreter is for 'modules' not for Ansible itself,  
what python Ansible uses can depends on how/what installed it. Check  
bin/ansible for a shebang, it determines which python is actually used  
for the controller.

PS. i really hope those are not your real auth credentials.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Anderson](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Post date:** [March 31, 2017, 4:33pm UTC](https://forum.ansible.com/t/point-ansible-to-my-new-version-of-python/24110/2 "2017-03-31T16:33:59Z")

</div>

Thanks Brian for your help but I need some more clarification.

You said I should “Check bin/ansible for a shebang” but…

I have no folder or file starting with “ansible” in /bin/

My “ansible” folder is in /etc/ but it only contains ansible.cfg and it only contains this

[defaults]  
inventory = /fs01/home/controlNode/hosts

There is also a file “ansible.cfg.rpmsave”. Can I delete that?

Also, is this what you call a shebang? Where again should I put it?

#!/usr/bin/env python2.7

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [March 31, 2017, 5:06pm UTC](https://forum.ansible.com/t/point-ansible-to-my-new-version-of-python/24110/3 "2017-03-31T17:06:02Z")

</div>

The ansible in bin/ansible is not a folder it is the executable script  
(use `which ansible` to locate it).

the shebang is a convention, which is how unix/linux system execute  
scripts. The first line of the script starts with '#!' and what  
follows is the interpreter to be used.

As for rpmsave files, those are a feature of rpm systems package  
mangement, deleting them or not depends on your  
preferences/policies/etc.
