-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
bugThis issue/PR relates to a bugThis issue/PR relates to a buglookuplookup pluginlookup pluginpluginsplugin (any type)plugin (any type)
Description
Summary
Originally filed on ansible/ansible#85928
Using lookup('community.general.passwordstore'... in a playbook used to make a passphrase prompt pop up for me when needed as long as I was using Debian 12 (Bookworm). After upgrade to Debian 13 (Trixie) I'm not getting that prompt anymore but instead ansible will fail saying it could not decript the password file.
Issue Type
Bug Report
Component Name
community.general.passwordstore
Ansible Version
$ ansible --version
ansible [core 2.19.0b6]
config file = /home/strk/adm/osgeo/sac/ansible-deployment/ansible.cfg
configured module search path = ['/home/strk/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /home/strk/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0] (/usr/bin/python3)
jinja version = 3.1.6
pyyaml version = 6.0.2 (with libyaml v0.2.5)
Community.general Version
# /home/strk/.ansible/collections/ansible_collections
Collection Version
----------------- -------
community.general 9.5.11
# /usr/lib/python3/dist-packages/ansible_collections
Collection Version
----------------- -------
community.general 10.7.0
Configuration
$ ansible-config dump --only-changed -t all
CONFIG_FILE() = /home/strk/adm/ansible-strk/ansible.cfg
DEFAULT_HOST_LIST(/home/strk/adm/ansible-strk/ansible.cfg) = ['/home/strk/adm/ansible-strk/hosts']
EDITOR(env: EDITOR) = vi
INTERPRETER_PYTHON(/home/strk/adm/ansible-strk/ansible.cfg) = /usr/bin/python3
PAGER(env: PAGER) = less
GALAXY_SERVERS:
OS / Environment
Debian GNU/Linux 13 (trixie)
Steps to Reproduce
- hosts: localhost
gather_facts: false
tasks:
- debug:
var: "{{ lookup('community.general.passwordstore', 'strk/forum.k9mail.app' ) }}"
Expected Results
Debug print of my strk/forum.k9mail.app password after being prompted to provide a passphrase if needed
Actual Results
PLAY [localhost] ******************************************************************************************************************************************************************************
TASK [debug] **********************************************************************************************************************************************************************************
[ERROR]: Task failed: Finalization of task args for 'ansible.builtin.debug' failed: Error while resolving value for 'var': The lookup plugin 'community.general.passwordstore' failed: exit code 2 while running ['pass', 'show', 'strk/forum.k9mail.app']. Error output: gpg: public key decryption failed: No such file or directory
gpg: decryption failed: No such file or directory
Task failed: Finalization of task args for 'ansible.builtin.debug' failed.
Origin: /home/strk/adm/ansible-strk/test.yml:4:7
2 gather_facts: false
3 tasks:
4 - debug:
^ column 7
<<< caused by >>>
Error while resolving value for 'var': The lookup plugin 'community.general.passwordstore' failed.
Origin: /home/strk/adm/ansible-strk/test.yml:5:14
3 tasks:
4 - debug:
5 var: "{{ lookup('community.general.passwordstore', 'strk/forum.k9mail.app' ) }}"
^ column 14
<<< caused by >>>
exit code 2 while running ['pass', 'show', 'strk/forum.k9mail.app']. Error output: gpg: public key decryption failed: No such file or directory
gpg: decryption failed: No such file or directory
fatal: [localhost]: FAILED! => {"msg": "Task failed: Finalization of task args for 'ansible.builtin.debug' failed: Error while resolving value for 'var': The lookup plugin 'community.general.passwordstore' failed: exit code 2 while running ['pass', 'show', 'strk/forum.k9mail.app']. Error output: gpg: public key decryption failed: No such file or directory\ngpg: decryption failed: No such file or directory"}
PLAY RECAP ************************************************************************************************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Code of Conduct
- I agree to follow the Ansible Code of Conduct
Metadata
Metadata
Assignees
Labels
bugThis issue/PR relates to a bugThis issue/PR relates to a buglookuplookup pluginlookup pluginpluginsplugin (any type)plugin (any type)