community / community.general / 6.6.8 / lookup / lastpass fetch data from LastPass Authors: Andrew Zenk (!UNKNOWN) <azenk@umn.edu>community.general.lastpass (6.6.8) — lookup
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
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. type: str _terms: description: Key from which you want to retrieve the field. elements: str required: true type: list
_raw: description: secrets stored elements: str type: list