问题:

ansible test -m ping

ansible的ping时报错UNREACHABLE msg"timed out"


可以加参数-vvvv显示详细的输出信息

ansible的ping时报错UNREACHABLE msg"timed out"
通过输出信息才知道是端口没有指定,在hosts配置文件加上端口就够定了
[wms_wechat_test]
 23 47.95.199.102 ansible_ssh_user=root ansible_ssh_port=1756

ansible的ping时报错UNREACHABLE msg"timed out"ansible的ping时报错UNREACHABLE msg"timed out"

相关文章:

  • 2022-12-23
  • 2022-01-15
  • 2022-01-06
  • 2022-12-23
  • 2021-11-12
  • 2021-07-30
  • 2022-12-23
猜你喜欢
  • 2022-01-13
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案