Skip to main content



Installing and Configuring Ansible

Installing and Configuring Ansible

1. Enable EPEL Repository

     # rpm -ivh epel-release-6-8.noarch.rpm

2. Install Ansible

sudo yum install ansible

3. Setup Passwordless access to remote machines

ssh-keygen -t rsa -b 4096
       ssh-copy-id essadmin@

   Now test pass-wordless access.

4. Creating Inventory File for Remote Hosts with below entry 

sudo vim /etc/ansible/hosts

5. Test ansible using the ping module with -m option

$ ansible -m ping webservers | SUCCESS => {
                    "changed": false,
                          "ping": "pong"

           $ ansible -m ping all | SUCCESS => {
               changed": false,
               "ping": "pong"

6. Use command module to execute any command on remote hosts

     $ ansible -m command -a "…

Latest Posts

Rsync: Transferring files between two hosts

Puppet 4 : Using Metaparameters

Puppet Fundamentals:Manifests and Resources

Puppet: Writing multiple manifest for multiple clients

Understanding Puppet Modules

Using fileserver in Puppet

Puppet manifests to automate Tomcat Deployment

MCollective Puppet Configuration