Commit graph

6 commits

Author SHA1 Message Date
Holger Mueller 94ee0b0163 Yaml indentation fixed
custom_field and sync ke:ys weren't correctly indented for current
ansible versions
2019-11-18 17:05:38 +01:00
Lars Kellogg-Stedman c56f7b5f1b teach bitwarden lookup how to sync
set sync=true in the lookup call to call `bw sync` before looking up
data
2018-10-19 22:28:43 -04:00
Lars Kellogg-Stedman e5dd4eae60 make flake8 happy 2018-10-19 21:32:58 -04:00
Lars Kellogg-Stedman 250d5b26cc decode response from bw
Running under python 3, the response from running the `bw` command is a
byte string, so the lookup was returning to ansible values of the form
`b'somestring'`. It is necessary to decode these results.
2018-10-19 21:30:56 -04:00
Lars Kellogg-Stedman 87616af387 teach bitwarden lookup about custom fields
This makes it easier to look up the values of custom fields in a
Bitwarden entry. If the `custom_field` named parameter is true, search
for the named `field` in the list of custom fields rather than the
top-level dictionary.
2018-10-19 21:17:00 -04:00
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
Renamed from lib/ansible/plugins/lookup/bitwarden.py (Browse further)