Skip to content

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

@oswinfox

Description

@oswinfox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions