cyberark.conjur.conjur_variable – Fetch credentials from CyberArk Conjur.¶
Note
This plugin is part of the cyberark.conjur collection (version 1.1.0).
To install it use: ansible-galaxy collection install cyberark.conjur
.
To use it in a playbook, specify: cyberark.conjur.conjur_variable
.
New in version 2.5: of cyberark.conjur
Synopsis¶
Retrieves credentials from Conjur using the controlling host’s Conjur identity or environment variables. Environment variables could be CONJUR_ACCOUNT, CONJUR_APPLIANCE_URL, CONJUR_CERT_FILE, CONJUR_AUTHN_LOGIN, CONJUR_AUTHN_API_KEY, CONJUR_AUTHN_TOKEN_FILE Conjur info - https://www.conjur.org/.
Requirements¶
The below requirements are needed on the local controller node that executes this lookup.
The controlling host running Ansible has a Conjur identity. (More: https://docs.conjur.org/latest/en/Content/Get%20Started/key_concepts/machine_identity.html)
Parameters¶
Examples¶
---
- hosts: localhost
collections:
- cyberark.conjur
tasks:
- name: Lookup variable in Conjur
debug:
msg: "{{ lookup('cyberark.conjur.conjur_variable', '/path/to/secret') }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this lookup:
Key | Returned | Description |
---|---|---|
_raw
string
|
success |
Value stored in Conjur.
|
Authors¶
CyberArk BizDev (@cyberark-bizdev)
CyberArk Community and Integrations Team (@cyberark/community-and-integrations-team)