vault_token_create
using wrap_ttl
and role_name
returns a token that is not wrapped
#358
Labels
bug
Something isn't working
SUMMARY
The template
{{ lookup('community.hashi_vault.vault_token_create', url='https://100.72.58.16:8200/', wrap_ttl='1m', role_name='cluster-pki') }}
does NOT create a wrapped token - just creates a normal token.The equivalent cli command works fine with the same token (as above)
vault token create -wrap-ttl=1m -role=cluster-pki
and creates a wrapped token.ISSUE TYPE
COMPONENT NAME
community.hashi_vault.vault_token_create
ANSIBLE VERSION
COLLECTION VERSION
OS / ENVIRONMENT
MacOS
STEPS TO REPRODUCE
{{ lookup('community.hashi_vault.vault_token_create', url='https://100.72.58.16:8200/', wrap_ttl='1m', role_name='cluster-pki' ) }}
EXPECTED RESULTS
It creates a wrapped token.
ACTUAL RESULTS
It creates a normal token (not wrapped).
The text was updated successfully, but these errors were encountered: