Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect to the host via ssh: Permission denied When running playbook #5

Open
mandibuswell opened this issue Jul 14, 2018 · 1 comment

Comments

@mandibuswell
Copy link

when running
ansible-playbook playbooks/coolstore/msa-cicd-eap-min.yml -e "github_ref=stable-ocp-3.9"

I would get a permission denied
TASK [openshift_common_facts : check if token file exists] *****************************************************************************************
Saturday 14 July 2018 19:37:33 +1200 (0:00:00.031) 0:00:01.177 *********
fatal: [localhost]: UNREACHABLE! => {
"changed": false,
"unreachable": true
}

MSG:

Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

My openshift is running locally so I did not think I needed to do anything, however I assumed it is because when doing ssh localhost a password is required. Looking at ansible docks i just forced it to ask me for the password by adding --ask-pass to the command.

I am sure this is because of my limited ansible knowledge but it might be helpful documented either FAQ or readme.

@jeffhoek
Copy link

jeffhoek commented Aug 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants