ansible.builtin.lastpass (v2.9.27) — lookup

fetch data from lastpass

| "added in version" 2.3 of ansible.builtin"

Authors: Andrew Zenk <azenk@umn.edu>

Install Ansible via pip

Install with pip install ansible==2.9.27

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'
  debug:
    msg: "{{ lookup('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