Ansible installation on fedora 26

Ansible is a infrastructure configuration management tools like chef,puppet, salt but what sets ansible apart from the other is its simple to use architecture which relies on ssh, which is default on may linux servers.

we can install ansible on fedora 26 from dnf command.

$sudo dnf install ansible -y 
Last metadata expiration check: 1:04:30 ago on Sunday 01 April 2018 09:03:30 PM IST.
Dependencies resolved.
============================================================================================================================================================================================================================
 Package                                                Arch                                       Version                                                                Repository                                   Size
============================================================================================================================================================================================================================
Installing:
 ansible                                                noarch                                     2.4.3.0-1.fc26                                                         updates                                     7.6 M
Installing dependencies:
 libtomcrypt                                            x86_64                                     1.17-31.20160123git912eff4.fc26                                        updates                                     351 k
 libtommath                                             x86_64                                     1.0-8.fc26                                                             updates                                      55 k
 python-keyczar                                         noarch                                     0.71c-8.fc26                                                           fedora                                      222 k
 python2-babel                                          noarch                                     2.3.4-5.fc26                                                           fedora                                      4.9 M
 python2-crypto                                         x86_64                                     2.6.1-22.fc26                                                          updates                                     479 k
 python2-jinja2                                         noarch                                     2.9.6-1.fc26                                                           fedora                                      545 k
 python2-jmespath                                       noarch                                     0.9.0-7.fc26                                                           fedora                                       42 k
 python2-markupsafe                                     x86_64                                     0.23-13.fc26                                                           fedora                                       35 k
 python2-pytz                                           noarch                                     2017.2-7.fc26                                                          updates                                      52 k

Transaction Summary
============================================================================================================================================================================================================================
Install  10 Packages

Total download size: 14 M
Installed size: 66 M
Downloading Packages:
(1/10): python-keyczar-0.71c-8.fc26.noarch.rpm                                                                                                                                              194 kB/s | 222 kB     00:01    
(2/10): python2-jinja2-2.9.6-1.fc26.noarch.rpm                                                                                                                                              463 kB/s | 545 kB     00:01    
(3/10): python2-jmespath-0.9.0-7.fc26.noarch.rpm                                                                                                                                            495 kB/s |  42 kB     00:00    
(4/10): python2-markupsafe-0.23-13.fc26.x86_64.rpm                                                                                                                                          1.0 MB/s |  35 kB     00:00    
(5/10): python2-babel-2.3.4-5.fc26.noarch.rpm                                                                                                                                               7.7 MB/s | 4.9 MB     00:00    
(6/10): python2-pytz-2017.2-7.fc26.noarch.rpm                                                                                                                                                50 kB/s |  52 kB     00:01    
(7/10): python2-crypto-2.6.1-22.fc26.x86_64.rpm                                                                                                                                             851 kB/s | 479 kB     00:00    
(8/10): libtommath-1.0-8.fc26.x86_64.rpm                                                                                                                                                     54 kB/s |  55 kB     00:01    
(9/10): libtomcrypt-1.17-31.20160123git912eff4.fc26.x86_64.rpm                                                                                                                              176 kB/s | 351 kB     00:01    
(10/10): ansible-2.4.3.0-1.fc26.noarch.rpm                                                                                                                                                  1.7 MB/s | 7.6 MB     00:04    
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                       2.1 MB/s |  14 MB     00:06     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                    1/1 
  Installing       : libtommath-1.0-8.fc26.x86_64                                                                                                                                                                      1/10 
  Running scriptlet: libtommath-1.0-8.fc26.x86_64                                                                                                                                                                      1/10 
  Installing       : libtomcrypt-1.17-31.20160123git912eff4.fc26.x86_64                                                                                                                                                2/10 
  Running scriptlet: libtomcrypt-1.17-31.20160123git912eff4.fc26.x86_64                                                                                                                                                2/10 
  Installing       : python2-crypto-2.6.1-22.fc26.x86_64                                                                                                                                                               3/10 
  Installing       : python-keyczar-0.71c-8.fc26.noarch                                                                                                                                                                4/10 
  Installing       : python2-pytz-2017.2-7.fc26.noarch                                                                                                                                                                 5/10 
  Installing       : python2-babel-2.3.4-5.fc26.noarch                                                                                                                                                                 6/10 
  Installing       : python2-markupsafe-0.23-13.fc26.x86_64                                                                                                                                                            7/10 
  Installing       : python2-jinja2-2.9.6-1.fc26.noarch                                                                                                                                                                8/10 
  Installing       : python2-jmespath-0.9.0-7.fc26.noarch                                                                                                                                                              9/10 
  Installing       : ansible-2.4.3.0-1.fc26.noarch                                                                                                                                                                    10/10 
  Running scriptlet: ansible-2.4.3.0-1.fc26.noarch                                                                                                                                                                    10/10 
Running as unit: run-r79f208804d194ee5bc13d52d73d44978.service
  Verifying        : ansible-2.4.3.0-1.fc26.noarch                                                                                                                                                                     1/10 
  Verifying        : python-keyczar-0.71c-8.fc26.noarch                                                                                                                                                                2/10 
  Verifying        : python2-jinja2-2.9.6-1.fc26.noarch                                                                                                                                                                3/10 
  Verifying        : python2-jmespath-0.9.0-7.fc26.noarch                                                                                                                                                              4/10 
  Verifying        : python2-babel-2.3.4-5.fc26.noarch                                                                                                                                                                 5/10 
  Verifying        : python2-markupsafe-0.23-13.fc26.x86_64                                                                                                                                                            6/10 
  Verifying        : python2-pytz-2017.2-7.fc26.noarch                                                                                                                                                                 7/10 
  Verifying        : python2-crypto-2.6.1-22.fc26.x86_64                                                                                                                                                               8/10 
  Verifying        : libtomcrypt-1.17-31.20160123git912eff4.fc26.x86_64                                                                                                                                                9/10 
  Verifying        : libtommath-1.0-8.fc26.x86_64                                                                                                                                                                     10/10 

Installed:
  ansible.noarch 2.4.3.0-1.fc26           libtomcrypt.x86_64 1.17-31.20160123git912eff4.fc26     libtommath.x86_64 1.0-8.fc26             python-keyczar.noarch 0.71c-8.fc26         python2-babel.noarch 2.3.4-5.fc26    
  python2-crypto.x86_64 2.6.1-22.fc26     python2-jinja2.noarch 2.9.6-1.fc26                     python2-jmespath.noarch 0.9.0-7.fc26     python2-markupsafe.x86_64 0.23-13.fc26     python2-pytz.noarch 2017.2-7.fc26    

Complete!

Checking the version of ansible installed on the server.

$ansible --version 
ansible 2.4.3.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/cipher/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.14 (default, Mar 14 2018, 13:29:26) [GCC 7.3.1 20180130 (Red Hat 7.3.1-2)]