onepassword_raw – fetch raw json data from 1Password

New in version 2.6.

Synopsis

  • onepassword_raw wraps op command line utility to fetch an entire item from 1Password

Requirements

The below requirements are needed on the local master node that executes this lookup.

Parameters

Parameter Choices/Defaults Configuration Comments
_terms
- / required
identifier(s) (UUID, name, or domain; case-insensitive) of item(s) to retrieve
subdomain
-
added in 2.7
Default:
"None"
The 1Password subdomain to authenticate against.
vault
-
Default:
"None"
vault containing the item to retrieve (case-insensitive); if absent will search all vaults
vault_password
-
added in 2.7
Default:
"None"
The password used to unlock the specified vault.

Examples

- name: Retrieve all data about Wintermute
  debug:
    var: lookup('onepassword_raw', 'Wintermute')

- name: Retrieve all data about Wintermute when not signed in to 1Password
  debug:
    var: lookup('onepassword_raw', 'Wintermute', subdomain='Turing', vault_password='DmbslfLvasjdl')

Return Values

Common return values are documented here, the following are the fields unique to this lookup:

Key Returned Description
_raw
-
field data requested



Status

Authors

Hint

If you notice any issues in this documentation you can edit this document to improve it.