viczem / ansible-keepass

Ansible lookup plugin to fetch data from KeePass file
MIT License
112 stars 31 forks source link

Support for database editting #42

Open LecrisUT opened 1 year ago

LecrisUT commented 1 year ago

Firstly, thank you for the implementation of this, it works very nicely. One additional feature that would be nice to have is to have a viczem.keepass.entry (and maybe even viczem.keepass.database) module that modify keepass database entries (and databases respectively). This could even be integrated with the lookup to automatically generate the entry if a variable keepass_generate_entry is defined true.

viczem commented 1 year ago

I think that more reliable and easier variant is using prepared data. With pykepass which you have to install for use this plugin, it is not difficult to pre generate any number of entities by self.

LecrisUT commented 1 year ago

There are some roles like in freeipa that automatically generates a password, e.g. for the ansible administrator user, and other playbooks like a Update_CA_Root where you would want it to keep the database up to date.

Torie-Coding commented 11 months ago

Hey, we just wrote an Ansible-Collection to edit keepass entries. Maybe it fits your needs.

https://galaxy.ansible.com/ui/repo/published/torie_coding/keepass/