Install ansible to Redhat 7 Linux

1. Download epel release

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

2. Install epel package ( uninstall old epel package if conflict occur)

rpm -i epel-release-latest-7.noarch.rpm

3. Update yum

sudo yum update

4. Install ansible

sudo yum install ansible

5. Test

ansible --version

ansible localhost -m ping

 

Viet Luu has written 152 articles

Leave a Reply