-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Ansible 2.0 does not allow special chars in SUDO password #13240
Comments
Proposing this as a fix -- https://github.com/ansible/ansible/pull/13257/files |
I can confirm this pull request would solve the issue for me. |
@ThomasSteinbach / @chrrrles I'm ok with the patch above, with the one caveat that it should be using |
@chrrrles Could we please re-open this issue, as recent changes reverted the error? Even with
The working implementation for me is
However @jimi-c , you said that the try/except way is not the best. Did you know a working alternative? What does it mean to use |
@ThomasSteinbach Could you give me the full traceback? The code you're showing me as fixing this is definitely incorrect as it translates the value into either a text type (unicode) or a bytes type (str) depending on whether a UnicodeDecodeError (which should never happen with the default params to to_unicode()). |
@ThomasSteinbach reproduced... looking further. |
Okay, that should fix this issue. Pushed to both devel and the stable-2.0 branch. |
Thank you @abadger , I couldn't reproduce the issue on my working machine, which confuses me a lot. I planned to check it again at home on my laptop, where issue arose. However you have fixed the issue. Great. |
I have a Playbook which is configured with
become: true
started it with the option--ask-become-pass
. When it asks for the SUDO password, I entered a password with many special chars, like k§=aI$ntWith this (example) password I get the following error:
In Ansible 1.9.4 I had no problems with
sudo: yes
and--ask-sudo-password
.The text was updated successfully, but these errors were encountered: