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.
Shell
x
5
1
*****@@@@@@:~: ansible all -m ping
2
x.x.x.x | FAILED! => {
3
"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."
4
}
5
에러 발생시 아래 두가지중 선택해서 처리 필요
- 환경변수 지정
Shell
1
1
1
export ANSIBLE_HOST_KEY_CHECKING=False
- ~/.ansible.cfg 파일 에 해당 옵션 추가
TOML
1
2
1
[defaults]
2
host_key_checking = False
댓글 남기기