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

Sometimes a sudo password is required, sometimes not? #11

Open
bartmcleod opened this issue Mar 9, 2017 · 2 comments
Open

Sometimes a sudo password is required, sometimes not? #11

bartmcleod opened this issue Mar 9, 2017 · 2 comments

Comments

@bartmcleod
Copy link

This task does not seem to be idempotent:
[ansible-role-virtualbox-guest : If virtualbox_version is set to auto then determine the host version]

fatal: [default -> localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "sudo: a password is required\n", "module_stdout": "", "msg": "MODULE FAILURE"}

This error does not occur always, yet a lot of the times I try.

@PeterMosmans
Copy link
Owner

Thanks for posting this issue. It looks like the error has something to do with... authentication... weird enough? It would be great if you could trace the error to a 'specific' state.

Thanks in advance.

@bartmcleod
Copy link
Author

bartmcleod commented Mar 9, 2017

I locked it down to the following:
If you have done nothing special, it will fail. If you have, before calling vagrant provision, entered your sudo password for anything (for example: create a directory in / on the host), it will pass. So it needs sudo permissions on the host for this task.

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