QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 130 forks source link

Failed to connect to the hosts: permission denied(publickey Password) #983

Closed yasartestgit closed 3 years ago

yasartestgit commented 3 years ago

when I'm trying to the run --- ansible-playbook -i hosts lamp-playbook.yaml facing this below error.

fatal: [172.31.37.16]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: root@172.31.37.16: Permission denied (publickey,password).", "unreachable": true}

PLAY RECAP ***** 172.31.37.16 : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0

yasartestgit commented 3 years ago

Issue resolved