본문 바로가기
인프라/앤서블(Ansible)

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.

by IT맥구리나스 2022. 5. 23.

문제점

젠킨스에서 ansible 명령어 수행시 아래와같은 에러가 발생함, console에서는 잘 수행됨

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.

 

해결방법

/etc/ansible/ansible.cfg 파일에 아래 내역 추가 후 다시 명령 수행

[defaults]
host_key_checking = False

 

반응형

댓글