Problem: Jobs stuck on SSH-Password-Prompt
Closed this issue · 13 comments
Versions
0.0.24
Scope
Ansible (Job Execution)
Issue
Jobs are stuck on the prompt SSH password:
- the other ones work as expected
Possible issue with the formatting? Needs to be regex?
ansible/ansible-runner#534
Yes - looks like it wants regex: https://github.com/ansible/ansible-runner/blob/devel/src/ansible_runner/config/_base.py#L199
Seems it makes no difference if we supply the matches in regex format..
Debugging shows that the ansible-runner actually sends the password, but still nothing happens. At this point in the code the SSH password is sent: https://github.com/ansible/ansible-runner/blob/2.4.0/src/ansible_runner/runner.py#L321
Was able to get it working by forking and hotfixing the ansible-runner: https://github.com/ansibleguy/ansible-runner/blob/release_2.4/src/ansibleguy_runner/runner.py#L323
Will create an issue at the ansible-runner repo.. for now we have a fork that should work: https://pypi.org/project/ansibleguy-runner/
Related: #72
My tests look good.
Please update to the new version an re-test it.
Very interesting as the --become-password-file
and --connect-password-file
are not in the codebase anymore.
Can only think of a issue when building the docker images.. Will check it
Have forgot to release the 0.0.24-3 image that has the missing-user fix in it.
Currently uploading..
But also on 0.0.24-2 I was not able to reproduce the behavior seen in your screenshot:
docker run -d --name ansible-webui --publish 127.0.0.1:8000:8000 --volume $(pwd):/play ansible0guy/webui:0.0.24-2
Looks good to me too. Much appreciated!