Ansible → The Configuration tool (part 1)

4 min readMar 26, 2023
Ansible architecture

Points to study →

  1. What is ansible
  2. Ansible V/S Terraform
  3. History of Ansible
  4. Architecture of Ansible
  5. Terms used in Ansible

What is Ansible →

Ansible is DevOps tool and it is similiar like chef means it is a Configuration management tool let’s Begins with a Story →suppose you have a big organisation which have 100’s of servers Now a task is came to install git on that 100’s of servers …man responsible for doing this is System Administrator who is doing this manually which takes a lot of time… guess what happen if we have a tool in which we click once to install and git is install in all the servers in that way we save a big whole time of installing it on one by one

guys!!!! we have that tool and that is Ansible→ A Configuration Management Tool…..

But !! But !! But !! First you need to connect all the nodes to ansible server which is done manually after that you will be able to automate the things…..

configuration management →It is a method through which we automate admin tasks.

It automates the task which the system administrator doing manually

Ansible v/s Terraform →

ansible is a configuration management tool which means if you want to install git on 100s or 1000s of machine you won’t able to do it manually it takes a lot time but ansible do it in just one click all you need to do write a YAML Script in which ansible runs and just enter and git would be ready to work on those servers


if you want to create 100 servers than you use terraform by writing a code in hcl language using .tf extension of the file and than run terraform apply and your 100 of servers is ready


terraform is a infrastructure building tool while ansible is a configuration management tool

Configuration management tool is of 2 types →

  1. Pull based In Pull Based it periodically check for the update from the main server to the nodes if update available it automaticlly install on the nodes connnected with the server →chef and puppet is a pull based config tool
  2. Push based → In push based nodes is not going to the main server for the update the update is pushed to the nodes automatically for example the update of apps is pushed to your phone playstore now it’s your choice whether you update or notpush based tool is Ansible when you need control in your hands so you take control of your own server for updation.

History of Ansible →

  1. Michael Dehan developed Ansible in Feb 2012
  2. Red Hat acquired the Ansible tool in 2015.
  3. Ansible is available for RHEL, Dabian, cent OS, Oracle Linux.
  4. It is developed in Python background and also in Windows PowerShell.
  5. You Can use this tool whether your server are in on premises or in the cloud.
  6. It converted your code into infrastructure means you can say that it is a little bit called an Infrastructure building tool

Architecture of Ansible →

Image at the top indicate the architecture of Ansible It is based on client server having one server node connected to multiple nodes and push the updates to all the nodes in one click

Important terms and points in Ansible →

  1. Not 100% automation because of push based mechanism Nodes does not automatically install the updates.
  2. YAML → The code you provide is written in YAML script
  3. Agentless →Like chef-cleint and ohai in chef is not available here
  4. Using ssh to communicate
  5. Playbook → Just like recipe in chef(click here to read a blog on chef)
  6. Ansible Server → The machine where ansible is installed and from which all task and playbooks is ran
  7. Module →Basically , a module is a command or set of familiar commands meant to be executed on the client side
  8. Task → A task is a section that consists of a single procedure to be completed

In next part of ansible we see the commands to install and setup of Ansible in ubuntu




Cloud computing and DevOps Engineer and to be as a fresher I am learning and gaining experiance by doing some hands on projects on DevOps and in AWS OR GCP