We can see all the hosts in “ntp” group is reachable. Now we can check if our Ansible server is able to communicate with remote servers or not using “ ping” module using command “ ansible -m ping ntp“ We already have ssh-key available on my ansible server which I will just copy it on 2 remote machines as given below.
#INSTALL SHADOWSOCKS CLIENT ON CENTOS 7 PASSWORD#
We have created a group name “ ntp” and added our remote hosts IP addresses, we can add many more machines as per our need.Ĭonfiguring password less authentication of ansible server with remotes hosts, for this we have to genrate ssh key and copy it on remote hosts
#INSTALL SHADOWSOCKS CLIENT ON CENTOS 7 INSTALL#
To install and configuration NTP on remote hosts Centos machines, we have to add the IP address into the /etc/ansible/hosts files of Ansible server. Our lab setup is given as below, we have to configure NTP on ntp-client01 & ctp-client02 using ansible playbook. Ansible is an agentless configuration and management tools to we will not require to install agents on remote hosts like other competitive tools Puppet & Chef.įor installing & configuring ansible please click on below link. For resolving resource and time issue here will be use configuration management tools – Ansible. Now you can understand, for installing and configuration of NTP client on thousands server will take lots of days and resources. Why we need to use ansible for installing and configuration of NTPĪssume we have thousands of servers in your environment and you need to install and configure NTP on all these servers so that they can be synced to central NTP servers. It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows While time is passing by, computers internal clocks tend to drift which can lead to inconsistent time issues, especially on servers and clients logs files or if you want to replicate servers resources or databases.Īnsible is an open-source software provisioning, configuration management, and application-deployment tool enabling infrastructure as code. Network Time Protocol – NTP- is a protocol which runs over port 123 UDP at Transport Layer and allows computers to synchronize time over networks for an accurate time.