What Is Ansible – Introduction To Ansible

This lesson will introduce you to what ansible is, the basic overview of ansible, the features of ansible, and the advantages of ansible.

What Is Ansible

Ansible is an easy to deploy software used for automation and orchestration of IT tasks. Tasks such as configuration and management of numerous computers in a network environment.

How Ansible Works

The ansible software is similar to a server-client based system. To use ansible, there must be at least two nodes.

One is the Ansible control node, also known as the controller. This is the node where the ansible software will be installed, and the other nodes are the managed hosts, that is, the hosts that the ansible node will manage.

To understand better, let’s explain further with the diagram showing the ansible architecture below.

What is ansible
Basic Overview of ansible architecture

From the diagram, it is evident that the ansible environment is basically made up of ansible control node, inventories, plugins, managed hosts, modules, and playbooks.

So, what are these?

*Ansible Control Node

Like I mentioned above, the control node or the controller is where the ansible tool will be installed.

*Ansible Inventories

The Ansible Inventories contains the number of hosts, individually or in groups that the ansible control node will manage.

For example, if one needs to install and configure the httpd service on a host or group of hosts by automation using the ansible software, ansible will have carry out these tasks on the hosts specified in the inventory file, else, these tasks will not be done.

*Ansible Plugin

What connects the ansible control node and the managed hosts is the plugin. The connection plugin is responsible for the interaction between the control node and the managed hosts.

The default ansible connection plugin is SSH. SSH is sufficient for the connection of Linux machines and the python programs in the Linux machines can easily interpret the ansible operations.

There are also other plugins such as Action, call-back, etc, and ansible comes with a number of its plugins.

If the managed hosts are windows or windows related instances, other plugins will be used in this case because windows don’t have SSH.

*Ansible Module

Modules are small programs or rather units of code, python code specifically, with tasks that are executed from a control node against/on managed hosts using the ansible ad hoc commands or ansible playbook.

In summary, modules are basically tasks, and the ansible feature used to execute the tasks are the ad hoc commands or playbooks.

Without ad hoc or playbooks, modules will not be executed.

The ansible software by default has various modules and with modules comes arguments.

As we go on in the course of study, you will understand better and you will also understand how to use modules and arguments in ansible.

*Ansible Playbook

Ansible playbook is a feature in ansible that contains a unit of scripts with instructions and tasks. These scripts are simple files written in YAML.

A playbook contains different plays with different tasks and these tasks can be orchestrated step by step at the same time or at different times depending on how it is defined in the playbook.

A playbook is a most sought-after feature while using ansible and it is what makes ansible popular.

Ansible ad hoc

Ansible ad hoc is the basic or simple ansible commands used to execute ansible tasks.

Having understood all these basic ansible features listed above, from the diagram above, the basic overview of the ansible architecture is:

1. Ansible will be installed on the control node.

2. The inventory file(s), which contains the managed hosts will be created on the control node.

3. Playbook file(s) will be created. The playbook data will contain plays and modules/tasks

4. The SSH plugin will be responsible for the connection between the control node and the managed nodes. This makes Ansible is agent-less

Advantages Of Ansible

**1. Super Easy to Use: Ansible is like the superhero of simplicity. You don’t need to be a coding wizard to make it work. With its straightforward commands and user-friendly interface, even tech newbies can feel like IT rockstars.

**2. Automation Magic: Imagine having a magical wand that automates repetitive tasks. Well, Ansible is that wand! It takes care of mundane jobs like installing software or configuring servers, letting you focus on the cool, creative stuff.

**3. No More Manual Madness: Gone are the days of manually setting up each server or updating software on every machine. Ansible lets you do it all at once, saving you time and sparing you from endless clicks and keystrokes.

**4. Teamwork Makes the Dream Work: Ansible encourages teamwork like your favorite sports coach. Multiple team members can collaborate seamlessly, thanks to Ansible’s user-friendly playbook system. It’s like having a tech orchestra where everyone plays in harmony.

**5. Money Matters: Who doesn’t love saving money? Ansible is an open-source tool, meaning it won’t cost you a dime. You get powerful automation without burning a hole in your budget. It’s a win-win!

**6. Rock-Solid Stability: Reliability is Ansible’s middle name. It gracefully handles complex tasks without breaking a sweat. Whether you’re managing a handful of servers or a massive network, Ansible stands tall and steady.

**7. Future-Ready Flexibility: Ansible is not stuck in the past; it’s all about the future! With constant updates and improvements, it stays relevant in the ever-evolving tech landscape. You won’t feel left behind with Ansible by your side.

**8. Community Love: Joining the Ansible family means being part of a vibrant community. Share ideas, troubleshoot together, and bask in the collective wisdom of tech enthusiasts worldwide. It’s like having a tech family that’s always got your back.

In a nutshell, Ansible is your tech superhero, simplifying tasks, saving time and money, and fostering collaboration. So, whether you’re a seasoned pro or a tech rookie, Ansible is your ticket to a smoother, more efficient tech journey. Embrace the advantages, and let the Ansible adventure begin!

If you like this article, you can support us by

1. sharing this article.

2. Buying the article writer a coffee (click here to buy a coffee)

3. Donating to move our project to the next level. (click here to donate)

If you need personal training, send an email to info@tekneed.com

Click To Watch Video On What Is Ansible – Introduction To Ansible

Your feedback is welcomed. If you love others, you will share with others

Be the first to comment

Leave a Reply

Your email address will not be published.


*