Some checks failed
Nix Format Check / check-format (push) Failing after 37s
Ansible Configuration
1Password Integration
This Ansible configuration includes a custom lookup plugin for fetching secrets from 1Password. The 1Password CLI must be installed and authenticated on the machine running Ansible.
Usage
# Simple password lookup
password: "{{ lookup('onepassword', 'item-name') }}"
# Fetch specific field
api_key: "{{ lookup('onepassword', 'item-name', field='api_key') }}"
# Fetch from specific vault
database_password: "{{ lookup('onepassword', 'database', field='password', vault='Development') }}"
Prerequisites
- Install 1Password CLI
- Sign in to 1Password using
op signin
- Service account should be properly configured
For more information, see the 1Password CLI documentation.