0 vote
Based on the github repo here: https://github.com/Devolutions/ansible-dvls (it is not finished yet)
it would be nice to retrieve users and passwords from Devolutions Server via Ansible module
You're absolutely right; the integration is still in its early stages and hasn’t yet reached full maturity. However, we’ll review your feature request soon and will follow up with you in this thread. I'd be helpful for us to know your use-case so we can focus our efforts at the right place.
Thank you so much for your time and for trying our integration!
Richer Larivière
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!