Ansible is an open-source IT engine that automates application deployment, cloud provisioning, intra service orchestration, and other IT tools.
It is an automation and orchestration tool popular for the following reasons:
- Simple to Install.
- Free and open source.
- Lightweight and consistent.
- OpenSSH security features make it very secure.
- Control node:
Commands and Playbooks can run by 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. However, one can not use a computer with Windows OS as a control node. One can have multiple control nodes.
- Managed nodes:
Also sometimes called “hosts”, Managed nodes are the network devices (and/or servers) you manage with Ansible.
Also sometimes called “hostfile”, Inventory is the list of Managed nodes use to organize them. It is also used for creating and nesting groups for easier scaling.
These are the units of code executed by Ansible. Each module can be used for a specific purpose. One can invoke a single module with a task, or invoke several different modules in a playbook.
The units of action in Ansible. One can execute a single task once with an ad-hoc command.
These are the ordered list of tasks that are saved so you can run those tasks in that order repeatedly. Playbooks are written in YAML and are easy to read, write, share and understand.
NOTE: In order to install ansible, the system must have python preinstalled.
Open up Terminal and execute the following commands.:
1. Add the Ansible Repository.
sudo apt-add-repository -y ppa:ansible/ansible
2. Update the system repository listings.
sudo apt-get update
3. Install the ansible packages.
sudo apt-get install -y ansible
For more details visit Ansible complete documentation.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.