onepassword_raw – fetch an entire item from 1Password¶
New in version 2.6.
Synopsis¶
onepassword_rawwrapsopcommand line utility to fetch an entire item from 1Password
Requirements¶
The below requirements are needed on the local master node that executes this lookup.
op1Password command line utility. See https://support.1password.com/command-line/
Parameters¶
Notes¶
Note
This lookup will use an existing 1Password session if one exists. If not, and you have already performed an initial sign in (meaning
~/.op/config exists), then only themaster_passwordis required. You may optionally specifysubdomainin this scenario, otherwise the last used subdomain will be used byop.This lookup can perform an initial login by providing
subdomain,username,secret_key, andmaster_password.Due to the very sensitive nature of these credentials, it is highly recommended that you only pass in the minimal credentials needed at any given time. Also, store these credentials in an Ansible Vault using a key that is equal to or greater in strength to the 1Password master password.
This lookup stores potentially sensitive data from 1Password as Ansible facts. Facts are subject to caching if enabled, which means this data could be stored in clear text on disk or in a database.
Tested with
opversion 0.5.3
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¶
This lookup is not guaranteed to have a backwards compatible interface. [preview]
This lookup is maintained by the Ansible Community. [community]