community / community.general / 8.5.0 / lookup / lastpass fetch data from LastPass Authors: Andrew Zenk (!UNKNOWN) <azenk@umn.edu>community.general.lastpass (8.5.0) — lookup
Install with ansible-galaxy collection install community.general:==8.5.0
collections: - name: community.general version: 8.5.0
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