community / community.general / 2.5.9 / lookup / lastpass fetch data from lastpass Authors: Andrew Zenk (!UNKNOWN) <azenk@umn.edu>community.general.lastpass (2.5.9) — lookup
Install with ansible-galaxy collection install community.general:==2.5.9
collections: - name: community.general version: 2.5.9
use the lpass command line utility to fetch specific fields from lastpass
- name: get 'custom_field' from lastpass entry 'entry-name' ansible.builtin.debug: msg: "{{ lookup('community.general.lastpass', 'entry-name', field='custom_field') }}"
field: default: password description: field to return from lastpass _terms: description: key from which you want to retrieve the field required: true
_raw: description: secrets stored elements: str type: list