how to install ansible in centos71 min read
Hi Readers, this document deals with how to install ansible in centos7
Ansible is open source software that automates software provisioning, configuration management, and application deployment. Ansible connects via SSH, remote PowerShell or via other remote APIs.
1. Install EPEL repository
2. Update the system repositories
3. Install ansible
Once you install ansible you can start using it
Before start using Ansible, you need to add your servers into inventory.
By default ansible inventory is stored in /etc/ansible/hosts .
You can add your server list in the server as follows,
Even you can group the server as follows,
Copy ansible server root user ssh key to all your server for passwordless authentication.
Once it is done, ansible can log in to the server list without the password.
Now you ping all the servers in you list inorder to check the connectivity. Below is the exected output .
Now you have done with ansible installation and test the connectivity.
check this document for ansible installation in ubuntu 16.04