Posts

Showing posts from April, 2020

TimeSync using ansible and rhel-system-roles.timesync

Install   rhel-system-roles.timesync yum install rhel-system-roles -y After install  /usr/share/ansible/roles/rhel-system-roles.timesync [root@servera ~]# cat inventory   [all] server[a:e] [root@servera ~]# ansible -i inventory all -m ping   servere | SUCCESS => {     "changed": false,       "ping": "pong" } serverb | SUCCESS => {     "changed": false,       "ping": "pong" } servera | SUCCESS => {     "changed": false,       "ping": "pong" } serverd | SUCCESS => {     "changed": false,       "ping": "pong" } serverc | SUCCESS => {     "changed": false,       "ping": "pong" } [root@servera ~]# cat timesync.yml   --- - hosts: all   vars:     timesync_ntp_servers:       - hostname: {IP of NTP 1}     ...