community / community.general / 2.5.9 / lookup / onepassword_raw fetch an entire item from 1Password Authors: Scott Buchanan (@scottsb), Andrew Zenk (@azenk), Sam Doran (@samdoran)community.general.onepassword_raw (2.5.9) — lookup
Install with ansible-galaxy collection install community.general:==2.5.9
collections: - name: community.general version: 2.5.9
C(onepassword_raw) wraps C(op) command line utility to fetch an entire item from 1Password
- name: Retrieve all data about Wintermute ansible.builtin.debug: var: lookup('community.general.onepassword_raw', 'Wintermute')
- name: Retrieve all data about Wintermute when not signed in to 1Password ansible.builtin.debug: var: lookup('community.general.onepassword_raw', 'Wintermute', subdomain='Turing', vault_password='DmbslfLvasjdl')
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. subdomain: description: The 1Password subdomain to authenticate against. secret_key: description: The secret key used when performing an initial sign in. master_password: aliases: - vault_password description: The password used to unlock the specified vault.
_raw: description: field data requested elements: dict type: list