jhaals / ansible-vault

ansible lookup plugin for secrets stored in Vault(by HashiCorp)
BSD 3-Clause "New" or "Revised" License
347 stars 65 forks source link

Allow to iterate over list of secrets not values #40

Closed ketchoop closed 7 years ago

ketchoop commented 7 years ago

Is there any possibility to do it? E.g. I have two users in secret/users path and want to get their secrets and want to do it dynamically. I know, that I can define array with users or curl to get list of users from vault, but it's not convenient.

jhaals commented 7 years ago

It's not possible to iterate. Not sure it's possible to do it in a nice way in lookup functions. I have no plans on adding it currently. Sorry for the late reply.