Can you provide a minimal Ansible playbook with a vaulted variable file to 
see if we can recreate it or see anything amiss?

The error message you're showing states "root @ SOME_IP: Permission denied 
(publickey,password)" which doesn't seem to be ansible-vault related.

On Sunday, October 2, 2022 at 6:15:34 AM UTC-5 jer...@gmail.com wrote:

> I'm using in inventory/group_vars/all.yaml:
> ....
> *ansible_ssh_private_key_file: '{{inventory_dir}}/group_vars/path/to/key'*
>
> This Key is working well when it's plain text
> When I encrypt the file with ansible-vault, i get the error:
>
>
>
> *    Load key 
> "/home/user/projects/ansible/inventory/group_vars/path/to/key": invalid 
> format    root @ SOME_IP: Permission denied (publickey,password).  
> unreachable: true*
>
> I am using $*ANSIBLE_VAULT_PASSWORD_FILE *to decrypt everything without 
> asking for password.
> I have other encrypted secrets in all.yaml that get decrypted.
>
> What am I missing ?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5635aeb8-5db3-4e28-a8eb-8a5ea2f98640n%40googlegroups.com.

Reply via email to