Go to file
Lars Kellogg-Stedman e6edf87208 Reorganize as an installable ansible role
With this commit, the bitwarden lookup module can be installed by running
`ansible-galaxy install git+https://github.com/c0sco/ansible-modules-bitwarden`.
2018-10-19 16:14:41 -04:00
lookup_plugins Reorganize as an installable ansible role 2018-10-19 16:14:41 -04:00
meta Reorganize as an installable ansible role 2018-10-19 16:14:41 -04:00
.gitignore Remove lib entries 2018-07-05 18:02:55 -07:00
LICENSE Initial commit 2018-07-05 17:13:22 -07:00
README.md Minor text fixes 2018-07-05 18:07:58 -07:00

ansible-modules-bitwarden

Bitwarden integrations for Ansible

Lookup plugin

Use lookup() with the bitwarden argument, followed by the items you want to retrieve. The default field is password, but any other field can be specified. If you need to specify the path to the Bitwarden CLI binary, use the path named argument. For example:

# Get username for Slashdot and Google
- debug: msg="{{ lookup('bitwarden', 'Slashdot', 'Google', field='username', path='/not/in/my/path/bw') }}"

If you want to run the plugin directly for testing, you must first specify the field, then list the items to fetch.

lib/ansible/plugins/lookup/bitwarden.py username Google Slashdot