individual host specific python-interpreter changing

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/
Params: {‘name’: u’'}

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

I would suggest using the syntax of:

tower-cli host modify -n host1 --variables “ansible_python_interpreter: /usr/bin/python26” -v

Thanks Alan for answering and explaining rationale behind this behaviour .

That works like a charm.

Regards,
Prakash.