ansible-modules-bitwarden icon indicating copy to clipboard operation
ansible-modules-bitwarden copied to clipboard

Get all items in folder

Open JuliCodes opened this issue 6 years ago • 1 comments

Hello, is ist possible to get all items in a folder with their name (and the other fields)? I want to automate the registration of VPN Clients and SSH Keys and manage their secrets already with bitwarden. Kind regards

JuliCodes avatar Jun 12 '19 16:06 JuliCodes

This module doesn't support that at the moment. Since we're just wrapping the bw CLI command, I think the way to do it would be to use the bw list folders command to get the folder IDs, then run a bw list items --folderid <id> to grab the items. Perhaps using a 'folder' param to lookup() to specify which folder you're interested in. I have to admit I don't have this use case, but I can see about implementing the functionality. If you'd like to send a PR I'd be happy to merge it.

c0sco avatar Jun 16 '19 19:06 c0sco