ansible-modules-bitwarden
ansible-modules-bitwarden copied to clipboard
stderr capture prevents json decode
I'm using snap package of bw
command. Apparently, because of that my output looks like:
bw lock
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
Your vault is locked.
where the warning message is printed to stdout
. Warning is printed for every command. This in turn prevents lookup plugin to properly decode json strings, cause it merged stdout and stderr. Giving the following error:
FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'bitwarden'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Error decoding Bitwarden status: Expecting value: line 1 column 1 (char 0)"}
after this error bw cli forgets my client config...