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-console asks for vault password #33027
Comments
Files identified in the description: If these files are inaccurate, please update the |
at the risk of sounding like a cliche, i have the same issue. I can input any password (except blank) and console continues. |
After migrating from stable-23 to stable-24, I get that issue. It appears only with ansible-console though. |
There apprears to be a redundant call to setup_vault_secrets() in ansible-console, one of which doesn't turn off auto_prompt. Fix appears to be just removing the redundant/incorrect setup_vault_secrets() call. |
ansible-console was calling setup_vault_secrets twice. Once directly and once via _play_prereqs() The direct invocation was not setting auto_prompt=False. However, the direct invocation isn't need at all so this removes it so only _play_reqs() is used. That fixes the unrequested vault password prompting. Fixes ansible#33027
ansible-console was calling setup_vault_secrets twice. Once directly and once via _play_prereqs() The direct invocation was not setting auto_prompt=False. However, the direct invocation isn't need at all so this removes it so only _play_reqs() is used. That fixes the unrequested vault password prompting. Fixes #33027 (cherry picked from commit 810fa70)
ansible-console was calling setup_vault_secrets twice. Once directly and once via _play_prereqs() The direct invocation was not setting auto_prompt=False. However, the direct invocation isn't need at all so this removes it so only _play_reqs() is used. That fixes the unrequested vault password prompting. Fixes #33027 (cherry picked from commit 810fa70)
ISSUE TYPE
COMPONENT NAME
ansible-console
ANSIBLE VERSION
CONFIGURATION
DEFAULT_HOST_LIST(/home/user1/.ansible.cfg) = [u'/home/user1/ansible/inventories/devel/i
DEFAULT_LOG_PATH(/home/user1/.ansible.cfg) = /home/user1/logs/ansible.log
DEFAULT_REMOTE_USER(/home/user1/.ansible.cfg) = root
HOST_KEY_CHECKING(/home/user1/.ansible.cfg) = False
OS / ENVIRONMENT
Debian 9
SUMMARY
ansible-console asks for vault password if run without any options. It never did that before (<= 2.3)
STEPS TO REPRODUCE
Just run ansible-console
ansible-console
EXPECTED RESULTS
I think it shoud not ask for a vault password here.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: