-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Summary
In the past when running a playbook using community.general.onepassword lookups, I would get prompted for my password a few times (same as the forks configuration setting) and then 1password (or PAM, not sure which one handles this) would remember that my shell session had been authorized and not prompt for my password again during the playbook execution. Recently this has changed and now I'm prompted for my password for every single lookup, making my playbooks unusable since I need to type in my password 100+ times on each execution.
I am able to run several op commands in a terminal and only get a password prompt once, so I know the issue is not with 1password itself.
Issue Type
Bug Report
Component Name
community.general.onepassword
Ansible Version
ansible [core 2.19.1]
config file = None
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.13/site-packages/ansible
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.13.7 (main, Aug 15 2025, 12:34:02) [GCC 15.2.1 20250813] (/usr/bin/python)
jinja version = 3.1.6
pyyaml version = 6.0.2 (with libyaml v0.2.5)
Community.general Version
# /usr/lib/python3.13/site-packages/ansible_collections
Collection Version
----------------- -------
community.general 10.7.3
Configuration
CONFIG_FILE() = None
EDITOR(env: EDITOR) = vim
GALAXY_SERVERS:
OS / Environment
The above version information is from Arch Linux, but I'm also experiencing the issue on Debian Trixie
Steps to Reproduce
Playbook:
- name: Pretasks
gather_facts: false
hosts: all
pre_tasks:
- name: Get ansible_become_password from 1Password
ansible.builtin.set_fact:
ansible_become_password: {{ lookup('community.general.onepassword', inventory_hostname, vault='Servers') }}
tags: alwaysRun the playbook with --forks 1 against several hosts.
Expected Results
I get prompted for my password once.
Actual Results
I get prompted or my password by 1password for every single host.
Code of Conduct
- I agree to follow the Ansible Code of Conduct