viczem / ansible-keepass

Ansible lookup plugin to fetch data from KeePass file
MIT License
116 stars 30 forks source link

Get a dict of usernames and passwords #6

Closed duhlig closed 3 years ago

duhlig commented 4 years ago

This change was handy for the work with ansible-oracle. It allows to read a dict of usernames and passwords grouped by database names and restricted to the current host (given by the structure of the data in the KeePass DB).

The change works for me but I'm afraid it's not very robust at this time. I only tested it with a well formatted KeePass DB, i.e. no whitespace and special characters in group and user names.

Kind Regards, Dietmar