New: Ansible Collection for Bitwarden Secret Rotation & Automation (rds_bitwarden)

Hi everyone,

For those of us relying heavily on infrastructure automation and CI/CD pipelines, securely integrating and rotating secrets without manual intervention is always a core challenge. While fetching secrets is relatively straightforward, managing the authentication state and automating the rotation of vault items can get complex.To solve this, I’ve been developing a dedicated Ansible Collection, and I’m excited to share the first version of rds_bitwarden with the community!

What does this collection do? The collection is built to seamlessly integrate Bitwarden into automated Ansible workflows (such as Ansible Semaphore). Rather than just focusing on data retrieval, it provides structured roles and tasks to handle secure authentication and the lifecycle management of your vault items.

Key Features:*

:locked_with_key: Streamlined Authentication: Includes the bhinz.rds_bitwarden.bitwarden_auth role, which handles the heavy lifting of Bitwarden CLI logins, vault unlocking, and secure session management directly within your playbooks.*

:counterclockwise_arrows_button: Automated Password Rotation: Features dedicated task execution flows designed to automatically generate new, secure credentials and update the corresponding items in your Bitwarden vault on the fly.*

:gear: CI/CD Optimized: Built specifically for continuous deployment environments and automated execution engines where manual vault unlocking isn’t an option.*

:handshake: Seamless Integration: Designed to work perfectly alongside the existing community.general.bitwarden lookup plugin—handling the authentication and rotation phases while you continue to fetch secrets natively.

Where to find it?

You can check out the source code and usage details on GitHub. It can be easily pulled into your existing automation projects via requirements.yml: :link: https://github.com/bhinz/rds_bitwarden

Since this project is in active development, I would really appreciate your feedback! Feel free to test it out in your environments. Bug reports, feature requests, and Pull Requests are more than welcome.How are you currently handling Bitwarden authentication and password rotations in your automated pipelines? I’d love to hear about your setups and exchange ideas.

Cheers, Björn