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

fetch an entire item from 1Password

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

Authors: Scott Buchanan (@scottsb), Andrew Zenk (@azenk), Sam Doran (@samdoran)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

C(onepassword_raw) wraps C(op) command line utility to fetch an entire item from 1Password


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve all data about Wintermute
  debug:
    var: lookup('onepassword_raw', 'Wintermute')
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve all data about Wintermute when not signed in to 1Password
  debug:
    var: lookup('onepassword_raw', 'Wintermute', subdomain='Turing', vault_password='DmbslfLvasjdl')

Inputs

    
vault:
    description: Vault containing the item to retrieve (case-insensitive). If absent will
      search all vaults.

_terms:
    description: identifier(s) (UUID, name, or domain; case-insensitive) of item(s) to
      retrieve.
    required: true

section:
    description: Item section containing the field to retrieve (case-insensitive). If
      absent will return first match from any section.

username:
    description: The username used to sign in.
    version_added: '2.7'
    version_added_collection: ansible.builtin

subdomain:
    description: The 1Password subdomain to authenticate against.
    version_added: '2.7'
    version_added_collection: ansible.builtin

secret_key:
    description: The secret key used when performing an initial sign in.
    version_added: '2.7'
    version_added_collection: ansible.builtin

master_password:
    aliases:
    - vault_password
    description: The password used to unlock the specified vault.
    version_added: '2.7'
    version_added_collection: ansible.builtin

Outputs

_raw:
  description: field data requested