New in version 2.6.
onepassword_raw
wraps op
command line utility to fetch an entire item from 1PasswordThe below requirements are needed on the local master node that executes this lookup.
op
1Password command line utility. See https://support.1password.com/command-line/
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
_terms - / required | identifier(s) (UUID, name, or domain; case-insensitive) of item(s) to retrieve. | ||
master_password - added in 2.7 | The password used to unlock the specified vault. aliases: vault_password | ||
secret_key - added in 2.7 | The secret key used when performing an initial sign in. | ||
section - | Item section containing the field to retrieve (case-insensitive). If absent will return first match from any section. | ||
subdomain - added in 2.7 | The 1Password subdomain to authenticate against. | ||
username - added in 2.7 | The username used to sign in. | ||
vault - | Vault containing the item to retrieve (case-insensitive). If absent will search all vaults. |
Note
~/.op/config exists
), then only the master_password
is required. You may optionally specify subdomain
in this scenario, otherwise the last used subdomain will be used by op
.subdomain
, username
, secret_key
, and master_password
.op
version 0.5.3- 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')
Common return values are documented here, the following are the fields unique to this lookup:
Key | Returned | Description |
---|---|---|
_raw - | field data requested |
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
Hint
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/plugins/lookup/onepassword_raw.html