[k8s] ansible-playbook 명령 - 오류 : Permission denied (publickey,password).", "unreachable": true}
Docker_k8s 2022. 12. 23. 13:58728x90
fatal: [node1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '192.168.0.92' (ECDSA) to the list of known hosts.\r\nkjun@192.168.0.92: Permission denied (publickey,password).", "unreachable": true} |
위와 같이 오류가 난 경우 --extra-vars 를 이용해 password 를 인자로 넘겨주면 됩니다.
ansible-playbook -i inventory/mycluster/inventory.ini -become --become-user=root cluster.yml --extra-vars "ansible_sudo_pass=1234qwer" |
참고
https://stackoverflow.com/questions/25582740/missing-sudo-password-in-ansible
728x90
'Docker_k8s' 카테고리의 다른 글
[k8s] ansible-playbook 명령 - 오류 : to use the 'ssh' connection type with passwords, you must install the sshpass program (0) | 2022.12.23 |
---|---|
[k8s] kubectl 명령 - 오류 : The connection to the server localhost:8080 was refused - did you specify the right host or port? (0) | 2022.12.23 |
[Docker] 추천 강의 - 따배도 (0) | 2022.12.19 |
[Docker] CPU 제한하기 (0) | 2022.12.09 |
[Docker] Memory 제한하기 (0) | 2022.12.08 |