Installation steps:
Ansible needs to be installed on the controller. Since Ansible is agentless and manages nodes using SSH transport, no additional setup is needed on the nodes except for ensuring that the SSH service is running. To install Ansible on the controller, refer to the following steps. These instructions are specific to the CentOS 7 distribution of Linux, as that's what we use on our controller.
No other Prerequisite is needed for installation.
Note: We are working as root users for the following installation. If you are a simple user then use the sudo command. Example "sudo yum install ansible -y".
The steps are as follows:
1. Login to Your System and Connect to the Internet.
2. Update the repository and install the necessary update.
Command: $ yum -y update
Command: $ yum -y upgrade
3. Install the EPEL Repository
- EPEL or Extra Packages for Enterprise Linux repository is a free and community-based repository that provides many extra open-source software packages which are not available in the default YUM repository.
- We need to install the EPEL repository into the system as Ansible is available in default YUM repository is very old.
Command:$ yum install epel-release
4. Install Ansible.
Command: $ yum install ansible -y
Ansible Installation Command. |
5. Validate ansible installation by the following command:
Command: $ ansible --version
Check Ansible Version. |
Hence we did it. Ansible is installed on your system. To start working with ansible go to the "/etc/ansible" directory.