250x250
Notice
Recent Posts
Recent Comments
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
Total
관리 메뉴

삽더하기실수

Ansible SSH password instead of a key is not possible 오류 본문

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

'Ansible' 카테고리의 다른 글

ansible-playbook nfs 일치시키기  (0) 2023.08.27
엔서블 코어 사용 준비  (0) 2023.08.13
Ansible Error 좀더 쉽게 보기  (0) 2023.07.31
Ansible-vim 설치  (0) 2023.07.31
Ansible(uptime,disk,mem,user, file)  (0) 2023.07.28