# individual host specific python-interpreter changing

**URL:** <https://forum.ansible.com/t/individual-host-specific-python-interpreter-changing/27921>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 30, 2018, 4:49pm UTC](https://forum.ansible.com/t/individual-host-specific-python-interpreter-changing/27921 "2018-06-30T16:49:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prakash\_Sharma](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@Prakash\_Sharma](https://forum.ansible.com/u/Prakash_Sharma)\
**Post date:** [June 30, 2018, 4:49pm UTC](https://forum.ansible.com/t/individual-host-specific-python-interpreter-changing/27921/1 "2018-06-30T16:49:12Z")

</div>

Hello Group,

In our environment we , have few Linux 5 machines on which I have installed pythin26. manually .

But to manage these VMs from Ansible AWX I will ave to add ansible\_python\_interpreter for these hosts in AWX…

These hosts are part of groups which also have Linux6 machines. I will not be able to set group wide variable.

I have tried to set this parameter via tower-cli , but that seems to have not worked

tower-cli host modify -n hostname --variables “ansible\_python\_interpreter=/usr/bin/python26” -v  
\*\*\* DETAILS: Checking for an existing record. \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
GET [http://api/v2/hosts/](http://api/v2/hosts/)  
Params: {‘name’: u’'}

\*\*\* DETAILS: Writing the record. \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
PATCH http:///api/v2/hosts/933/

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [July 2, 2018, 12:16pm UTC](https://forum.ansible.com/t/individual-host-specific-python-interpreter-changing/27921/2 "2018-07-02T12:16:53Z")

</div>

I would suggest using the syntax of:

tower-cli host modify -n host1 --variables “ansible\_python\_interpreter: /usr/bin/python26” -v

---

<div class="post-metadata">

**Author:** ![Prakash\_Sharma](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@Prakash\_Sharma](https://forum.ansible.com/u/Prakash_Sharma)\
**Post date:** [July 3, 2018, 1:52am UTC](https://forum.ansible.com/t/individual-host-specific-python-interpreter-changing/27921/3 "2018-07-03T01:52:16Z")

</div>

Thanks Alan for answering and explaining rationale behind this behaviour .

That works like a charm.

Regards,  
Prakash.
