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
解决方案
- 在ansible所在主机,通过ssh连接目标主机
- 生成免密登录文件
来源:CSDN
作者:思诺的小世界
链接:https://blog.csdn.net/SnowXu01/article/details/104758008