Update hashi_vault.py documentation with kv V2 example (#61221)
This commit is contained in:
parent
08e01380e6
commit
70f501d5c8
1 changed files with 7 additions and 0 deletions
|
@ -98,6 +98,13 @@ EXAMPLES = """
|
|||
- name: Return all secrets from a path in a namespace
|
||||
debug:
|
||||
msg: "{{ lookup('hashi_vault', 'secret=secret/hello token=c975b780-d1be-8016-866b-01d0f9b688a5 url=http://myvault:8200 namespace=teama/admins')}}"
|
||||
|
||||
# to work with kv v2 (vault api - for kv v2 - GET method requires that PATH should be "secret/data/:path")
|
||||
- name: Return all kv v2 secrets from a path
|
||||
debug:
|
||||
msg: "{{ lookup('hashi_vault', 'secret=secret/data/hello token=my_vault_token url=http://myvault_url:8200') }}"
|
||||
|
||||
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
|
Loading…
Reference in a new issue