I will install Ansible on my Lab with Centos 7
download the rpm for repo –
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
eg – command deployed -:
[root@TechSVM01_6 ~]# yum install ansible
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.schoemaker.systems
* extras: mirror.schoemaker.systems
* updates: mirror.amsiohosting.net
Setting up Install Process
No package ansible available.
Error: Nothing to do
[root@TechSVM01_6 ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.schoemaker.systems
* extras: mirror.schoemaker.systems
* updates: mirror.amsiohosting.net
Setting up Install Process
Cannot open: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm. Skipping.
Error: Nothing to do
[root@TechSVM01_6 ~]# wget
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
[root@TechSVM01_6 ~]# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
--2018-09-23 08:07:15-- https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Resolving dl.fedoraproject.org... 209.132.181.23, 209.132.181.25, 209.132.181.24
Connecting to dl.fedoraproject.org|209.132.181.23|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15080 (15K) [application/x-rpm]
Saving to: `epel-release-latest-7.noarch.rpm'
100%[=====================================================================>] 15,080 89.0K/s in 0.2s
2018-09-23 08:07:16 (89.0 KB/s) - `epel-release-latest-7.noarch.rpm' saved [15080/15080]
[root@TechSVM01_6 ~]# ls
anaconda-ks.cfg epel-release-latest-7.noarch.rpm install.log install.log.syslog
[root@TechSVM01_6 ~]# yum install epel-release-latest-7.noarch.rpm
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.schoemaker.systems
* extras: mirror.schoemaker.systems
* updates: mirror.amsiohosting.net
Setting up Install Process
Examining epel-release-latest-7.noarch.rpm: epel-release-7-11.noarch
Marking epel-release-latest-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================
Package Arch Version Repository Size
===============================================================================================================
Installing:
epel-release noarch 7-11 /epel-release-latest-7.noarch 24 k
Transaction Summary
===============================================================================================================
Install 1 Package(s)
Total size: 24 k
Installed size: 24 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : epel-release-7-11.noarch 1/1
Installed:
epel-release.noarch 0:7-11
Complete!
[root@TechSVM01_6 ~]#