-
Hi Team, I am testing secrets retrieval from my Hashicorp vault system using Ansible and using hashi_vault module/plugin/lookup filter. My ansible version is core 2.14.4 and python version is 3.9.13 I set my Hashicorp details as environment variables. export VAULT_ADDR="XXXX" When I run the playbook, I am getting below error. TASK [Authenticate with a vault app role and retrieve secrets under path secret/uat/ansible/secrets] ********************************************************************* Come some one please help me on this? Thanks in advance. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I found out that i have to use new ENV variables ANSIBLE_HASHI_VAULT_AUTH_METHOD After adding this, its working fine. |
Beta Was this translation helpful? Give feedback.
-
Some environment variables used by the Vault CLI are accepted, mostly for historical reasons, or because they are used implicitly. But we generally prefer ansible-specific vars and discourage use of the Vault ones. More info: |
Beta Was this translation helpful? Give feedback.
Some environment variables used by the Vault CLI are accepted, mostly for historical reasons, or because they are used implicitly.
But we generally prefer ansible-specific vars and discourage use of the Vault ones. More info: