Still have to keep some CentOS5 hosts, they have yum configured to use CentOS vault repo like this https://hastebin.com/ojopevanas.ini. That works fine when use yum there on host. When however I try to use ansible for that, like:
- name: "Install OS packages"
yum: pkg={{item}} state=installed
with_items:
- dos2unix
- vim
I get "msg": "python2 bindings for rpm are needed for this module. python2 yum module is needed for this module"
NOTE: the host has python26 installed next to default24 in the inventory file hostname has ansible_python_interpreter=/usr/bin/python26 next to it (otherwise ansible cannot even -m ping). Other ansible tasks works fine with this host