ansible-modules-bitwarden/README.md

19 lines
704 B
Markdown
Raw Normal View History

2018-07-06 00:13:22 +00:00
# ansible-modules-bitwarden
2018-07-06 01:03:11 +00:00
2018-07-06 00:13:22 +00:00
Bitwarden integrations for Ansible
2018-07-06 01:03:11 +00:00
## Lookup plugin
2018-07-06 01:07:58 +00:00
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:
2018-07-06 01:03:11 +00:00
```yaml
# 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.
```bash
lib/ansible/plugins/lookup/bitwarden.py username Google Slashdot
```