Remove -k when using sshpass, this is not need by Jenkins and freezin… - #9
Remove -k when using sshpass, this is not need by Jenkins and freezin…#9GeVa2072 wants to merge 1 commit into
Conversation
…g ansible-playbook
|
Can you give me more details on your setup. I cannot reproduce your issue. The -k flag is required when using a username/password instead of a private key for the SSH connection. |
|
The issue can be reproduced when one uses password meant to be used by sudo. But plugin always adds -k when using password credentials, so you can't combine these two: key for ssh connection and password credentials for sudo authorization. Under the hood ansible asks for two passwords and gets only one, that's why it hangs. This PR doesn't seem to address the issue too well though. It always removes -k so people would then need to add -k manually when not using sudo. Which breaks existing jobs. |
|
I'd say "-k" option is needed, make it configurable. It's quite a rare case that you have immediately a setup with all certificates and keys. |
Remove -k when using sshpass, this is not need by Jenkins and freezing ansible-playbook