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

ERROR! Invalid vault password was provided from script (~/.ansible/ansible-keyring.py) #1

Open
oswinfox opened this issue Aug 30, 2023 · 0 comments

Comments

@oswinfox
Copy link

Hello,

When I try to use the ansible-keyring.py script I have a issue:

 ~/.ansible/ansible-keyring.py set ansible_vault_pass                                                                                                                                                    
Password: 
Repeat password: 
Password set

ansible-vault encrypt_string --stdin-name 'variable_example' >> test.txt                                                                                                                                
[WARNING]: Error in vault password file loading (default): Invalid vault
password was provided from script (~/.ansible/ansible-
keyring.py)
ERROR! Invalid vault password was provided from script (~/.ansible/ansible-keyring.py)

I have also setup this two variable as follow:

 echo $ANSIBLE_VAULT_PASSWORD_FILE                                                                                                                                                                  
~/.ansible/ansible-keyring.py
echo $ANSIBLE_KEYRING_NAME                                                                                                                                                                             
ansible_vault_pass

Issue is that I do not see any logs or errors I only receive the message above when I try to add a new encryption.

Any help would be appreciated, I stay available if you need me to do anything for troubleshooting futher the issue.
Thanks

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

1 participant