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
The below requirements are needed on the local controller node that executes this lookup.
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
_terms string / required | Variable path | ||
as_file boolean |
| Store lookup result in a temporary file and returns the file path. Thus allowing it to be consumed as an ansible file parameter (eg ansible_ssh_private_key_file). | |
authn_token_file path | Default: "/var/run/conjur/access-token" | ini entries: [conjur,] env:CONJUR_AUTHN_TOKEN_FILE | Path to the access token file. |
config_file path | Default: "/etc/conjur.conf" | ini entries: [conjur,] env:CONJUR_CONFIG_FILE | Path to the Conjur configuration file. The configuration file is a YAML file. |
identity_file path | Default: "/etc/conjur.identity" | ini entries: [conjur,] env:CONJUR_IDENTITY_FILE | Path to the Conjur identity file. The identity file follows the netrc file format convention. |
validate_certs boolean |
| Flag to control SSL certificate validation |
--- - hosts: localhost collections: - cyberark.conjur tasks: - name: Lookup variable in Conjur debug: msg: "{{ lookup('cyberark.conjur.conjur_variable', '/path/to/secret') }}"
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. |
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/cyberark/conjur/conjur_variable_lookup.html