community.general.dsv – Get secrets from Thycotic DevOps Secrets Vault¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.dsv
.
New in version 1.0.0: of community.general
Synopsis¶
Uses the Thycotic DevOps Secrets Vault Python SDK to get Secrets from a DSV tenant using a client_id and client_secret.
Requirements¶
The below requirements are needed on the local controller node that executes this lookup.
python-dsv-sdk - https://pypi.org/project/python-dsv-sdk/
Parameters¶
Examples¶
- hosts: localhost
vars:
secret: "{{ lookup('community.general.dsv', '/test/secret') }}"
tasks:
- ansible.builtin.debug:
msg: 'the password is {{ secret["data"]["password"] }}'
Return Values¶
Common return values are documented here, the following are the fields unique to this lookup:
Key | Returned | Description |
---|---|---|
_list
list
/ elements=dictionary
|
success |
One or more JSON responses to
GET /secrets/{path} . |
Authors¶
Adam Migus (@amigus) <adam@migus.org>