Howto install Ansible on Centos 7 Fedora Linux Mint

Howto install Ansible on Centos 7 Fedora Linux Mint

 

[root@localhost ~]# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-re lease-7-8.noarch.rpm
–2016-09-20 08:04:25– http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-re lease-7-8.noarch.rpm


Resolving dl.fedoraproject.org (dl.fedoraproject.org)… 209.132.181.27, 209.132 .181.24, 209.132.181.25, …
Connecting to dl.fedoraproject.org (dl.fedoraproject.org)|209.132.181.27|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 14612 (14K) [application/x-rpm]
Saving to: ‘epel-release-7-8.noarch.rpm’

100%[======================================>] 14,612 72.8KB/s in 0.2s

2016-09-20 08:04:25 (72.8 KB/s) – ‘epel-release-7-8.noarch.rpm’ saved [14612/146 12]

[root@localhost ~]# rpm -ivh epel-release-7-8.noarch.rpm
Preparing… ################################# [100%]
package epel-release-7-8.noarch is already installed
[root@localhost ~]# sudo yum install ansible
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00
epel/x86_64/metalink | 5.6 kB 00:00
epel | 4.3 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/4): extras/7/x86_64/primary_db | 165 kB 00:02
(2/4): epel/x86_64/updateinfo | 627 kB 00:02
(3/4): epel/x86_64/primary_db | 4.2 MB 00:07
(4/4): updates/7/x86_64/primary_db | 7.8 MB 00:07
Loading mirror speeds from cached hostfile
* base: mirrors.vonline.vn
* epel: ftp.cuhk.edu.hk
* extras: mirrors.nhanhoa.com
* updates: mirrors.nhanhoa.com
Resolving Dependencies
–> Running transaction check
—> Package ansible.noarch 0:2.1.1.0-1.el7 will be installed
–> Processing Dependency: sshpass for package: ansible-2.1.1.0-1.el7.noarch
–> Processing Dependency: python-paramiko for package: ansible-2.1.1.0-1.el7.no arch
–> Processing Dependency: python-keyczar for package: ansible-2.1.1.0-1.el7.noa rch
–> Processing Dependency: python-jinja2 for package: ansible-2.1.1.0-1.el7.noar ch
–> Processing Dependency: python-httplib2 for package: ansible-2.1.1.0-1.el7.no arch
–> Processing Dependency: PyYAML for package: ansible-2.1.1.0-1.el7.noarch
–> Running transaction check
—> Package PyYAML.x86_64 0:3.10-11.el7 will be installed
–> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.e l7.x86_64
—> Package python-httplib2.noarch 0:0.7.7-3.el7 will be installed
—> Package python-jinja2.noarch 0:2.7.2-2.el7 will be installed
–> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.7.2- 2.el7.noarch
–> Processing Dependency: python-markupsafe for package: python-jinja2-2.7.2-2. el7.noarch
—> Package python-keyczar.noarch 0:0.71c-2.el7 will be installed
–> Processing Dependency: python-crypto for package: python-keyczar-0.71c-2.el7 .noarch
—> Package python2-paramiko.noarch 0:1.16.1-1.el7 will be installed
–> Processing Dependency: python2-ecdsa for package: python2-paramiko-1.16.1-1. el7.noarch
—> Package sshpass.x86_64 0:1.05-5.el7 will be installed
–> Running transaction check
—> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed
—> Package python-babel.noarch 0:0.9.6-8.el7 will be installed
—> Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed
—> Package python2-crypto.x86_64 0:2.6.1-9.el7 will be installed
–> Processing Dependency: libtomcrypt.so.0()(64bit) for package: python2-crypto -2.6.1-9.el7.x86_64
—> Package python2-ecdsa.noarch 0:0.13-4.el7 will be installed
–> Running transaction check
—> Package libtomcrypt.x86_64 0:1.17-23.el7 will be installed
–> Processing Dependency: libtommath >= 0.42.0 for package: libtomcrypt-1.17-23 .el7.x86_64
–> Processing Dependency: libtommath.so.0()(64bit) for package: libtomcrypt-1.1 7-23.el7.x86_64
–> Running transaction check
—> Package libtommath.x86_64 0:0.42.0-4.el7 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
ansible noarch 2.1.1.0-1.el7 epel 3.5 M
Installing for dependencies:
PyYAML x86_64 3.10-11.el7 base 153 k
libtomcrypt x86_64 1.17-23.el7 epel 224 k
libtommath x86_64 0.42.0-4.el7 epel 35 k
libyaml x86_64 0.1.4-11.el7_0 base 55 k
python-babel noarch 0.9.6-8.el7 base 1.4 M
python-httplib2 noarch 0.7.7-3.el7 epel 70 k
python-jinja2 noarch 2.7.2-2.el7 base 515 k
python-keyczar noarch 0.71c-2.el7 epel 218 k
python-markupsafe x86_64 0.11-10.el7 base 25 k
python2-crypto x86_64 2.6.1-9.el7 epel 475 k
python2-ecdsa noarch 0.13-4.el7 epel 83 k
python2-paramiko noarch 1.16.1-1.el7 epel 257 k
sshpass x86_64 1.05-5.el7 epel 21 k

Transaction Summary
================================================================================
Install 1 Package (+13 Dependent packages)

Total download size: 6.9 M
Installed size: 29 M
Is this ok [y/d/N]: y
Downloading packages:
(1/14): PyYAML-3.10-11.el7.x86_64.rpm | 153 kB 00:00:26
(2/14): libyaml-0.1.4-11.el7_0.x86_64.rpm | 55 kB 00:00:25
(3/14): libtommath-0.42.0-4.el7.x86_64.rpm | 35 kB 00:00:26
(4/14): python-httplib2-0.7.7-3.el7.noarch.rpm | 70 kB 00:00:01
(5/14): python-jinja2-2.7.2-2.el7.noarch.rpm | 515 kB 00:00:01
(6/14): python-markupsafe-0.11-10.el7.x86_64.rpm | 25 kB 00:00:00
(7/14): python-babel-0.9.6-8.el7.noarch.rpm | 1.4 MB 00:00:03
(8/14): python2-crypto-2.6.1-9.el7.x86_64.rpm | 475 kB 00:00:01
(9/14): libtomcrypt-1.17-23.el7.x86_64.rpm | 224 kB 00:00:29
(10/14): sshpass-1.05-5.el7.x86_64.rpm | 21 kB 00:00:00
(11/14): python2-paramiko-1.16.1-1.el7.noarch.rpm | 257 kB 00:00:00
(12/14): python-keyczar-0.71c-2.el7.noarch.rpm | 218 kB 00:00:03
(13/14): python2-ecdsa-0.13-4.el7.noarch.rpm | 83 kB 00:00:02
(14/14): ansible-2.1.1.0-1.el7.noarch.rpm | 3.5 MB 00:00:32
—————————————————————————————————————————————————————————————————–
Total 212 kB/s | 6.9 MB 00:00:33
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : sshpass-1.05-5.el7.x86_64 1/14
Installing : python-babel-0.9.6-8.el7.noarch 2/14
Installing : libtommath-0.42.0-4.el7.x86_64 3/14
Installing : libtomcrypt-1.17-23.el7.x86_64 4/14
Installing : python2-crypto-2.6.1-9.el7.x86_64 5/14
Error unpacking rpm package python2-crypto-2.6.1-9.el7.x86_64
error: unpacking of archive failed on file /usr/lib64/python2.7/site-packages/pycrypto-2.6.1-py2.7.egg-info: cpio: rename
Installing : python-keyczar-0.71c-2.el7.noarch 6/14
error: python2-crypto-2.6.1-9.el7.x86_64: install failed
Installing : python2-ecdsa-0.13-4.el7.noarch 7/14
Installing : python2-paramiko-1.16.1-1.el7.noarch 8/14
Installing : python-httplib2-0.7.7-3.el7.noarch 9/14
Installing : python-markupsafe-0.11-10.el7.x86_64 10/14
Installing : python-jinja2-2.7.2-2.el7.noarch 11/14
Installing : libyaml-0.1.4-11.el7_0.x86_64 12/14
Installing : PyYAML-3.10-11.el7.x86_64 13/14
Installing : ansible-2.1.1.0-1.el7.noarch 14/14
Verifying : python-keyczar-0.71c-2.el7.noarch 1/14
Verifying : libyaml-0.1.4-11.el7_0.x86_64 2/14
Verifying : python-jinja2-2.7.2-2.el7.noarch 3/14
Verifying : python-markupsafe-0.11-10.el7.x86_64 4/14
Verifying : python-httplib2-0.7.7-3.el7.noarch 5/14
Verifying : python2-ecdsa-0.13-4.el7.noarch 6/14
Verifying : libtomcrypt-1.17-23.el7.x86_64 7/14
Verifying : ansible-2.1.1.0-1.el7.noarch 8/14
Verifying : libtommath-0.42.0-4.el7.x86_64 9/14
Verifying : PyYAML-3.10-11.el7.x86_64 10/14
Verifying : python-babel-0.9.6-8.el7.noarch 11/14
Verifying : python2-paramiko-1.16.1-1.el7.noarch 12/14
Verifying : sshpass-1.05-5.el7.x86_64 13/14
Verifying : python2-crypto-2.6.1-9.el7.x86_64 14/14

Installed:
ansible.noarch 0:2.1.1.0-1.el7

Dependency Installed:
PyYAML.x86_64 0:3.10-11.el7 libtomcrypt.x86_64 0:1.17-23.el7 libtommath.x86_64 0:0.42.0-4.el7 libyaml.x86_64 0:0.1.4-11.el7_0 python-babel.noarch 0:0.9.6-8.el7
python-httplib2.noarch 0:0.7.7-3.el7 python-jinja2.noarch 0:2.7.2-2.el7 python-keyczar.noarch 0:0.71c-2.el7 python-markupsafe.x86_64 0:0.11-10.el7 python2-ecdsa.noarch 0:0.13-4.el7
python2-paramiko.noarch 0:1.16.1-1.el7 sshpass.x86_64 0:1.05-5.el7

Failed:
python2-crypto.x86_64 0:2.6.1-9.el7

Complete!
[root@localhost ~]# ansible –version
ansible 2.1.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
[root@localhost ~]#

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>