I'm using hashi_vault to retrieve secrets from HashiCorp’s vault in ansible
playbook.
- name: Return all secrets from a path
set_fact:
vault_result: "{{ lookup('hashi_vault', 'secret=secret/key:value
token=token
url=https://vaultaddress/ui/vault/secrets/secret/list/folder/subfolder
> Have you installed pip hashi vault module . I think you have to install
> the pip module for this connection. Check in hashi vault module page in
> official ansible document . In first few line you can see the requirements.
> Fix that it will work .
>
> On Wed 20. May 2020 at
I want retrieve secrets from HashiCorp’s vault in ansible playbook using
github token. When I checked the documentation
https://docs.ansible.com/ansible/latest/plugins/lookup/hashi_vault.html, I
found auth method can be following
- userpass
- ldap
- approle
But I wanted to retrieve