community.general.lastpass (8.5.0) — lookup

fetch data from LastPass

Authors: Andrew Zenk (!UNKNOWN) <azenk@umn.edu>

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Use the lpass command line utility to fetch specific fields from LastPass.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get 'custom_field' from LastPass entry 'entry-name'
  ansible.builtin.debug:
    msg: "{{ lookup('community.general.lastpass', 'entry-name', field='custom_field') }}"

Inputs

    
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

Outputs

_raw:
  description: secrets stored
  elements: str
  type: list