Ansible 报 Host Key checking错误,ansiblechecking


fatal: [10.10.250.42]: 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 @/home/docker-data/jenkins/jenkins/.jenkins/workspace/ATC/ATC_DEMO_CD_By_Ansible/atc-parent-global/ansible/playbook.retry

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

FATAL: command execution failed
hudson.AbortException: Ansible playbook execution failed

解决办法

修改配置文件 vi /etc/ansible/ansible.cfg,将如下行注释取消
host_key_checking = False

相关内容

    暂无相关文章