Ansible Introduction

Ansible Introduction

Ansible Introduction

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In this series, we will explore one of the most popular configuration management tool Ansible. We will try to cover each aspect of Ansible with a demo.

What is Ansible?

Ansible is an IT automation and configuration management tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible manages machines in an agent-less manner using SSH or password which makes it simple to configure and operate.

Ansible components:

  • Control Node: A control node is any machine with Ansible installed. You can run commands and playbooks, invoking /usr/bin/ansible or /usr/bin/ansible-playbook, from any control node. You can use any computer that has Python installed on it as a control node – laptops, shared desktops, and servers can all run Ansible. However, you cannot use a Windows machine as a control node. You can have multiple control nodes.
  • Managed Nodes: Managed nodes are the network devices (and/or servers) you manage with Ansible. Managed nodes are also sometimes called “hosts”. Ansible is not installed on managed nodes.
  • Inventory: An inventory is a list of managed nodes. An inventory file is also sometimes called a “hostfile”. Your inventory can specify information like IP address for each managed node. An inventory can also organize managed nodes, creating and nesting groups for easier scaling.
  • Modules: Modules are the units of code Ansible executes. Each module has a particular use, from administering users on a specific type of database to managing VLAN interfaces on a specific type of network device. You can invoke a single module with a task, or invoke several different modules in a playbook.
  • Tasks: Task is the units of action in Ansible. You can execute a single task once with an ad-hoc command or multiple task with the help of playbook.
  • Playbooks: Playbooks are ordered lists of tasks, saved so you can run those tasks in that order repeatedly. Playbooks can include variables as well as tasks. Playbooks are written in YAML and are easy to read, write, share and understand.

Next, we are going to learn how to install Ansible.

Ansible Installation Demo:

Hope you have enjoyed this article. In the next blog post, we will discuss Ansible Inventory.

To get more details on Ansible, please refer below Ansible documentation.


Leave a Reply

Close Menu