-
Notifications
You must be signed in to change notification settings - Fork 10
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
Need to allow sudo without password #15
Comments
Have you tried invoking ansible-playbook with --ask-become-pass?
|
I did invoke it with --ask-become-pass, but this does not help. I still get it hanging when targetting a CI server. When I require password for the user in vagrant, --ask-become-pass seems to help. Without it I get a clear error message showing that the sudo command fails (and proceeding as anonymous). Maybe there is another difference in my vagrant and CI server installation. But I can proceed with the nopasswd set for the user now. |
This is indeed an issue. Currently this role runs the Jenkins CLI as the The better way to do this would be to use There seems to be some light at the end of the tunnel, though. Apparently pipelining can be enabled per task and not just in |
The user on the target machine needs to have a right to run commands using sudo without password. Otherwise, tasks like adding Jenkins users hang silently when prompting the password in the background.
The vagrant test installation allows sudo without password, so this cannot be seen in the tests.
The text was updated successfully, but these errors were encountered: