Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpa

让人想犯罪 __ 提交于 2020-03-10 07:45:33
ASK [Gathering Facts] *********************************************************
fatal: [10.22.60.204]: FAILED! => {"msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this.  Please add this host's fingerprint to your known_hosts file to manage this host."}
	to retry, use: --limit @/data/ansible/workspace/AFFIN_ICORE/DIT/ICORE_CBS2/DEPLOY/sys_role.retry

PLAY RECAP *********************************************************************
10.22.60.204               : ok=0    changed=0    unreachable=0    failed=1   

解决方案

  1. 在ansible所在主机,通过ssh连接目标主机
  2. 生成免密登录文件
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!