community.general.lastpass (1.3.14) — lookup

fetch data from lastpass

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

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 1.3.14

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

_terms:
    description: key from which you want to retrieve the field
    required: true

Outputs

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