Advertisements

Installing Ansible for CentOS 6 using the EPEL repository

I’m going to install ansible from Extra Packages for Enterprise Linux (or EPEL)

On CentOS, you need to install the repository file that it is included in the extras repository

root@linux:~ # yum list epel-release
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.xpg.com.br
* extras: centos.xpg.com.br
* updates: mirror.ufscar.br
Available Packages
epel-release.noarch 6-8 extras

Install the package epel-release

root@linux:~ # yum install -y epel-release
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.xpg.com.br
* extras: centos.xpg.com.br
* updates: mirror.ufscar.br
Resolving Dependencies
–> Running transaction check
—> Package epel-release.noarch 0:6-8 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
epel-release noarch 6-8 extras 14 k

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 14 k
Installed size: 22 k
Downloading Packages:
epel-release-6-8.noarch.rpm | 14 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : epel-release-6-8.noarch 1/1
Verifying : epel-release-6-8.noarch 1/1

Installed:
epel-release.noarch 0:6-8

Complete!

Install ansible and all the dependencies

root@linux:~ # yum install -y ansible
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 2.4 kB 00:00
* base: centos.xpg.com.br
* epel: mirror.globo.com
* extras: centos.xpg.com.br
* updates: mirror.ufscar.br
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:05
Resolving Dependencies
–> Running transaction check
—> Package ansible.noarch 0:2.3.2.0-1.el6 will be installed
–> Processing Dependency: sshpass for package: ansible-2.3.2.0-1.el6.noarch
–> Processing Dependency: python2-jmespath for package: ansible-2.3.2.0-1.el6.noarch
–> Processing Dependency: python-simplejson for package: ansible-2.3.2.0-1.el6.noarch
–> Processing Dependency: python-keyczar for package: ansible-2.3.2.0-1.el6.noarch
–> Processing Dependency: python-jinja2-26 for package: ansible-2.3.2.0-1.el6.noarch
–> Processing Dependency: python-httplib2 for package: ansible-2.3.2.0-1.el6.noarch
–> Processing Dependency: python-crypto2.6 for package: ansible-2.3.2.0-1.el6.noarch
–> Processing Dependency: PyYAML for package: ansible-2.3.2.0-1.el6.noarch
–> Running transaction check
—> Package PyYAML.x86_64 0:3.10-3.1.el6 will be installed
–> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-3.1.el6.x86_64
—> Package python-crypto2.6.x86_64 0:2.6.1-2.el6 will be installed
—> Package python-httplib2.noarch 0:0.7.7-1.el6 will be installed
—> Package python-jinja2-26.noarch 0:2.6-3.el6 will be installed
–> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-26-2.6-3.el6.noarch
–> Processing Dependency: python-markupsafe for package: python-jinja2-26-2.6-3.el6.noarch
—> Package python-keyczar.noarch 0:0.71c-1.el6 will be installed
–> Processing Dependency: python-pyasn1 for package: python-keyczar-0.71c-1.el6.noarch
—> Package python-simplejson.x86_64 0:2.0.9-3.1.el6 will be installed
—> Package python2-jmespath.noarch 0:0.9.0-2.el6 will be installed
—> Package sshpass.x86_64 0:1.06-1.el6 will be installed
–> Running transaction check
—> Package libyaml.x86_64 0:0.1.3-4.el6_6 will be installed
—> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
—> Package python-markupsafe.x86_64 0:0.9.2-4.el6 will be installed
—> Package python-pyasn1.noarch 0:0.0.12a-1.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
ansible noarch 2.3.2.0-1.el6 epel 5.9 M
Installing for dependencies:
PyYAML x86_64 3.10-3.1.el6 base 157 k
libyaml x86_64 0.1.3-4.el6_6 base 52 k
python-babel noarch 0.9.4-5.1.el6 base 1.4 M
python-crypto2.6 x86_64 2.6.1-2.el6 epel 513 k
python-httplib2 noarch 0.7.7-1.el6 epel 70 k
python-jinja2-26 noarch 2.6-3.el6 epel 527 k
python-keyczar noarch 0.71c-1.el6 epel 219 k
python-markupsafe x86_64 0.9.2-4.el6 base 22 k
python-pyasn1 noarch 0.0.12a-1.el6 base 70 k
python-simplejson x86_64 2.0.9-3.1.el6 base 126 k
python2-jmespath noarch 0.9.0-2.el6 epel 39 k
sshpass x86_64 1.06-1.el6 epel 20 k

Transaction Summary
================================================================================
Install 13 Package(s)

Total download size: 9.1 M
Installed size: 40 M
Downloading Packages:
(1/13): PyYAML-3.10-3.1.el6.x86_64.rpm | 157 kB 00:00
(2/13): ansible-2.3.2.0-1.el6.noarch.rpm | 5.9 MB 00:05
(3/13): libyaml-0.1.3-4.el6_6.x86_64.rpm | 52 kB 00:00
(4/13): python-babel-0.9.4-5.1.el6.noarch.rpm | 1.4 MB 00:01
(5/13): python-crypto2.6-2.6.1-2.el6.x86_64.rpm | 513 kB 00:00
(6/13): python-httplib2-0.7.7-1.el6.noarch.rpm | 70 kB 00:00
(7/13): python-jinja2-26-2.6-3.el6.noarch.rpm | 527 kB 00:00
(8/13): python-keyczar-0.71c-1.el6.noarch.rpm | 219 kB 00:00
(9/13): python-markupsafe-0.9.2-4.el6.x86_64.rpm | 22 kB 00:00
(10/13): python-pyasn1-0.0.12a-1.el6.noarch.rpm | 70 kB 00:00
(11/13): python-simplejson-2.0.9-3.1.el6.x86_64.rpm | 126 kB 00:00
(12/13): python2-jmespath-0.9.0-2.el6.noarch.rpm | 39 kB 00:00
(13/13): sshpass-1.06-1.el6.x86_64.rpm | 20 kB 00:00
——————————————————————————–
Total 878 kB/s | 9.1 MB 00:10
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <epel@fedoraproject.org>
Package: epel-release-6-8.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : python-markupsafe-0.9.2-4.el6.x86_64 1/13
Installing : python-httplib2-0.7.7-1.el6.noarch 2/13
Installing : python-pyasn1-0.0.12a-1.el6.noarch 3/13
Installing : python-keyczar-0.71c-1.el6.noarch 4/13
Installing : python-crypto2.6-2.6.1-2.el6.x86_64 5/13
Installing : python-simplejson-2.0.9-3.1.el6.x86_64 6/13
Installing : python2-jmespath-0.9.0-2.el6.noarch 7/13
Installing : libyaml-0.1.3-4.el6_6.x86_64 8/13
Installing : PyYAML-3.10-3.1.el6.x86_64 9/13
Installing : sshpass-1.06-1.el6.x86_64 10/13
Installing : python-babel-0.9.4-5.1.el6.noarch 11/13
Installing : python-jinja2-26-2.6-3.el6.noarch 12/13
Installing : ansible-2.3.2.0-1.el6.noarch 13/13
Verifying : PyYAML-3.10-3.1.el6.x86_64 1/13
Verifying : python-babel-0.9.4-5.1.el6.noarch 2/13
Verifying : sshpass-1.06-1.el6.x86_64 3/13
Verifying : python-keyczar-0.71c-1.el6.noarch 4/13
Verifying : libyaml-0.1.3-4.el6_6.x86_64 5/13
Verifying : python2-jmespath-0.9.0-2.el6.noarch 6/13
Verifying : python-simplejson-2.0.9-3.1.el6.x86_64 7/13
Verifying : ansible-2.3.2.0-1.el6.noarch 8/13
Verifying : python-jinja2-26-2.6-3.el6.noarch 9/13
Verifying : python-crypto2.6-2.6.1-2.el6.x86_64 10/13
Verifying : python-pyasn1-0.0.12a-1.el6.noarch 11/13
Verifying : python-httplib2-0.7.7-1.el6.noarch 12/13
Verifying : python-markupsafe-0.9.2-4.el6.x86_64 13/13

Installed:
ansible.noarch 0:2.3.2.0-1.el6

Dependency Installed:
PyYAML.x86_64 0:3.10-3.1.el6
libyaml.x86_64 0:0.1.3-4.el6_6
python-babel.noarch 0:0.9.4-5.1.el6
python-crypto2.6.x86_64 0:2.6.1-2.el6
python-httplib2.noarch 0:0.7.7-1.el6
python-jinja2-26.noarch 0:2.6-3.el6
python-keyczar.noarch 0:0.71c-1.el6
python-markupsafe.x86_64 0:0.9.2-4.el6
python-pyasn1.noarch 0:0.0.12a-1.el6
python-simplejson.x86_64 0:2.0.9-3.1.el6
python2-jmespath.noarch 0:0.9.0-2.el6
sshpass.x86_64 0:1.06-1.el6

Complete!

Advertisements
%d bloggers like this: