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

GetPassWarning: Can not control echo on the terminal. #34

Open
filviu opened this issue Oct 13, 2020 · 2 comments
Open

GetPassWarning: Can not control echo on the terminal. #34

filviu opened this issue Oct 13, 2020 · 2 comments

Comments

@filviu
Copy link

filviu commented Oct 13, 2020

Hi,

I'm getting this when working with vscode (remote connected to a linux box). It's running fine inside wsl - I'm only getting this on this remote box. Any hints what I'm doing wrong ?

Thanks !

Command 'Ansible Vault: Encrypt/Decrypt' resulted in an error (Command failed: ansible-vault decrypt "xxxx/ansible-playbooks/vars/encrypted.yml" /usr/lib/python3.7/getpass.py:91: GetPassWarning: Can not control echo on the terminal. passwd = fallback_getpass(prompt, stream) Warning: Password input may be echoed. Vault password: [WARNING]: Error in vault password prompt (default): EOFError (ctrl-d) on prompt for (default) ERROR! EOFError (ctrl-d) on prompt for (default) )
@richardforth
Copy link

I get the same when trying to retreive secrets from ansible-vault in a cron job from within a shell script, the same command woks fine interactively.

@richardforth
Copy link

I fixed my cronjob issue (giving the same error you mentioned) by adding an environment variable to it at the top

ANSIBLE_VAULT_PASSWORD_FILE=/path-to-my/.ansible_vault_password

so you may want to look at making sure you have an environment variable set up somewhere in this vscode plugin. Hope that helps to get you one step closer to solving it.

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