Well you can set in three ways
- http://docs.ansible.com/intro_inventory.html#list-of-behavioral-inventory-parameters
ansible_python_interpreter=/usr/bin/python2
this will set it per host - Set it host_vars/
ansible_python_interpreter: "/usr/bin/python2"
this will set it per host - set it for all nodes in the file
group_vars/all
(you may need to create the directorygroup_vars
and the fileall
) asansible_python_interpreter: "/usr/bin/python2"
Hope that helps