hashivault_list – Hashicorp Vault list¶
New in version 2.9.
Synopsis¶
The hashivault_list module lists keys in Hashicorp Vault. By default this will list top-level keys under /secret, but you can provide an alternate location as secret. This includes both immediate subkeys and subkey paths, like the vault list command.
Requirements¶
The below requirements are needed on the host that executes this module.
hvac>=0.10.1
ansible>=2.0.0
requests
Parameters¶
Examples¶
---
- hosts: localhost
tasks:
- hashivault_list:
secret: 'giant'
version: 2
register: 'fie'
- debug: msg="Known secrets are {{ fie.secrets|join(', ') }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
secrets
list
|
success |
list of secrets found, if any
Sample:
['giant', 'stalks/']
|
Status¶
This module is guaranteed to have backward compatible interface changes going forward. [stableinterface]
This module is maintained by the Ansible Community. [community]
Authors¶
UNKNOWN
Hint
If you notice any issues in this documentation, you can edit this document to improve it.