请问在CentOS 8上安装,ansible脚本检查ntp service时报错

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:3.0
  • 【问题描述】:

请问在CentOS 8上安装,ansible脚本要检查ntp service,报如下错误: 但是CentOS 8的ntp程序 已经改论文chrony,请问这个错误如何处理?

fatal: [192.168.6.207]: FAILED! => {“changed”: false, “msg”: “Make sure NTP service is running and ntpstat is synchronised to NTP server. See https://github.com/pingcap/docs/blob/master/dev/how-to/deploy/orchestrated/ansible.md#how-to-check-whether-the-ntp-service-is-normal .”}

当前 ansible 部署是通过 ntpstat 命令检查 ntp 服务是否正常,检查 ntpstat 命令返回与 centos 7 上是否一致。
如确定 ntp 服务是正常的,也可以关闭 NTP 检查。
https://pingcap.com/docs-cn/stable/how-to/deploy/orchestrated/ansible/#第-9-步编辑-inventoryini-文件分配机器资源

谢谢。这个问题解决后,执行ansible-playbook bootstrap.yml命令又报了如下错误。

[192.168.6.207]: Ansible FAILED! => playbook: bootstrap.yml; TASK: check_system_static : Preflight check - Linux OS family and distribution version; message: {“changed”: false, “msg”: “System versions lower than Red Hat Enterprise Linux / CentOS 7.3 have been deprecated. Please use CentOS 7.3 and above. See https://github.com/pingcap/docs/blob/master/dev/how-to/deploy/hardware-recommendations.md”}

我的操作系统版本是:$ cat /etc/redhat-release CentOS Linux release 8.0.1905 (Core)

推荐在 centos 7上部署 tidb 环境,centos 8 目前还没有经过严格的测试和验证,你反馈的问题我们也尽快验证。

另外也麻烦执行一下 ansible all -m setup -a “filter=ansible_os_family” 看下操作系统类型吧

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。