문제점
플레이북 실행시 아래와 같은 에러발생
TASK [Gathering Facts] ***********************************************************************************************************************************************************************
fatal: [x.x.x.x]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).", "unreachable": true}
해결방법
ansible 서버의 ~/.ssh/id_rsa.pub 값을 에러가난 원격지 서버의 ~/.ssh/authorized_key 파일에 저장한다.
반응형
'인프라 > 앤서블(Ansible)' 카테고리의 다른 글
ansible command "python setup.py egg_info" failed with error code 1 (0) | 2022.05.12 |
---|---|
ansible sing a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this (0) | 2022.05.09 |
ansible awx 구축(cenot7 k8s) (0) | 2022.05.02 |
ansible awx windows playbook example (0) | 2022.05.02 |
ansible awx windows playbook 생성 및 실행 (0) | 2022.05.01 |
댓글