What would be the best way to set ansible_python_interpreter for almost 50% of the hosts in the inventory for ad-hoc ansible command. what i did is i grouped them under one group in the inventory [python27:children] and have set the vars for this group [python27:vars]
ansible_python_interprete=/path/to/python27/bin/python27
it is working, however i am not sure if that is the best way to do it, how would you do it?