Ansible
Ansible SSH password instead of a key is not possible 오류
삽수
2023. 7. 25. 23:37
728x90
에러메시지
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." } |
해결방법
export ANSIBLE_HOST_KEY_CHECKING=False
ansible all -m ping -k
OR
vi /etc/ansible/ansible.cfg
>host_key_checking = False 해당 부분을 주석을 제거해준다
정상 확인
728x90