Retrieve users and passwords via Ansible module
Thank you for your interest! Retrieving users and passwords from Devolutions Server via the Ansible module is indeed supported. You can use the fetch_secrets module available in the repository to achieve this:
tasks:
- name: Fetch secrets
devolutions.dvls.fetch_secrets:
server_base_url: "https://example.yourcompany.com"
app_key: "{{ lookup('env', 'DVLS_APP_KEY') }}"
app_secret: "{{ lookup('env', 'DVLS_APP_SECRET') }}"
vault_id: "00000000-0000-0000-0000-000000000000"
register: secret
- name: Dump a secret
debug:
msg: "{{ secrets['name-or-id'].value }}"The value field can represent the password, username, API key, or any other secret you need to fetch.
We’ve been putting some love into the repository recently, so you’ll find improved features and documentation to help you get started. If you have any questions or feedback, feel free to let us know—we’re always here to help!
Create a dynamic inventory for Ansible
Thank you for your suggestion! We truly appreciate your input. While the dynamic inventory idea is interesting, this module is specifically designed to consume DVLS rather than configure it. Listing available DVLS servers within a network falls outside the intended scope of this collection.
That said, we’re always open to feedback and ideas for future development. If you have additional thoughts, please don’t hesitate to share!