Add a Yum repo
If the Yum repository you want to use has a repository RPM (like EPEL and PostgreSQL), this simple task can be used to ensure the repository is installed:
name: Add the EPEL yum repo.
command: /bin/rpm -U http://fedora.cu.be/epel/6/i386/epel-release-6-8.noarch.rpm
creates=/etc/yum.repos.d/epel.repo
(example for CentOS 6 + EPEL)
Written by Tin Tvrtković
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ansible
Authors

tartansandal
73.35K
Related Tags
#ansible
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#