In this article, we will see How to Install Ansible Control Machine.
Mainly, Ansible architecture consists of 2 types of nodes:
Above all, Control machine is where the Ansible automation tools are installed. The automation playbooks are executed from this control machine.
Managed nodes are the ones where the actual automation tasks happen. However, Managed nodes are sometimes called as hosts
control node executes the automation playbooks. Managed nodes are the ones where the actual automation tasks happen.
That is to say, tasks in ansible is a unit of actions in the automation playbook.
Here we will see how to install the control machine and its prerequisites
RHEL / CentOS:
Execute the following yum command to install Ansible on RHEL / CentOS control machine
1$ sudo yum install ansible
The latest version of Ansible is installed with its dependencies
If the yum install says No package found, execute the following command to install additional packages repository
1$ sudo yum install epel-release
After that, execute the following yum command to install Ansible on Fedora control machine
1$ sudo dnf install ansible
Execute the following yum command to install Ansible on Ubuntu control machine
1$ sudo apt-get update2$ sudo apt-get install software-properties-common3$ sudo apt-add-repository --yes --update ppa:ansible/ansible4$ sudo apt-get install ansible
Install via PIP:
Above all, you can install Ansible using "pip" which is python installation manager. If pip is not installed with python, you can install it using the following command:
1$ sudo easy_install pip
After that, execute the following command to install ansible
1$ sudo pip install ansible
Installation Successful !!! In conclusion, you can check the version with below command.
1$ ansible --version
To Learn more about Ansible