Replies: 1 comment
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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"
export VAULT_AUTH_METHOD="approle"
export VAULT_ROLE_ID="YYYY"
export VAULT_SECRET_ID="ZZZZ"
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] *********************************************************************
fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'hashi_vault'. Error was a <class 'ansible.errors.AnsibleError'>, original message: No Vault Token specified or discovered.. No Vault Token specified or discovered."}
Come some one please help me on this?
Thanks in advance.
Regards,
Madhu M
Beta Was this translation helpful? Give feedback.
All reactions