三个节点的集群时间是一致的,用“ansible all -m shell -a 'date' ”,显示时间是一致的。
1、执行 ansible all -m shell -a 'date' 三节点时间一致
2、执行 ansible all -m shell -a 'timedatectl' 三节点时间一致
3、执行 ansible all -m shell -a 'hwclock -r' 三节点时间不一致
[root@F3E05-HLWCloudOS01-5U ~]# ansible all -m shell -a 'hwclock -r'
177.223.105.52 | SUCCESS | rc=0 >>
Wed 11 Dec 2019 05:18:18 PM CST -0.406967 seconds
177.223.105.51 | SUCCESS | rc=0 >>
Wed 11 Dec 2019 05:18:18 PM CST -0.360100 seconds
177.223.105.61 | SUCCESS | rc=0 >>
Wed 11 Dec 2019 05:32:14 PM CST -0.547595 seconds