Ansible is happy running with 2.4 and you should just use that.
It only requires 2.6 on the management machine.
See ansible_python_interpreter in the docs to select another python, but this sounds like you are managing an EL5 box or something and should not do this, because you still want it to find the installed yum module.