fatal: [web01]: FAILED! => {"changed": true, "cmd": "ntpdate time1.aliyun.com", "delta": "0:00:00.010939", "end": "2023-06-06 10:08:57.688162", "msg": "non-zero return code", "rc": 1, "start": "2023-06-06 10:08:57.677223", "stderr": "Error resolving time1.aliyun.com: Name or service not known (-2)\n 6 Jun 10:08:57 ntpdate[7760]: Can't find host time1.aliyun.com: Name or service not known (-2)\n 6 Jun 10:08:57 ntpdate[7760]: no servers can be used, exiting", "stderr_lines": ["Error resolving time1.aliyun.com: Name or service not known (-2)", " 6 Jun 10:08:57 ntpdate[7760]: Can't find host time1.aliyun.com: Name or service not known (-2)", " 6 Jun 10:08:57 ntpdate[7760]: no servers can be used, exiting"], "stdout": "", "stdout_lines": []}
时间: 2023-08-23 09:05:25 浏览: 136
ansible-vagrant-centos-server:使用Vagrant设置Centos 7服务器的剧本
根据你提供的信息,这是一个 Ansible playbook 在执行 ntpdate 这个命令时失败了,因为无法解析 time1.aliyun.com 这个域名。可能是 DNS 解析出现了问题,或者是因为防火墙等网络原因导致无法连接该域名。建议检查 DNS 配置和网络设置,确保主机能够正常连接外部网络。
阅读全文