When trying to manage packages with yum module via Ansible, on fresh installed RHEL / Centos Linux systems, you may face following error:
[code]
msg: No Package matching ‘sendmail-cf’ found available, installed or updated
[/code]
This is caused by missing package yum-utils.
It can be installed with Ansible raw module (also used for installing python-simplejson for Ansible):
[code]
ansible 1.2.3.4 -m raw -a “yum -y install yum-utils” –user=userx –sudo
[/code]