1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-27 22:49:14 +00:00

Passwordstore lookup: make directory an INI option (#12298)

* Passwordstore lookup: make `directory` an INI option

The passwordstore lookup plugin defaults to using the password store
tree under ~/.password-store. Being able to configure the directory used
for the whole Ansible project helps to use project-specific credentials
directory.

As `get_option` was already used for this option, this does not require
any change in the code itself.

* Add related changelog

* Update changelogs/fragments/12298-passwordstore-directory-as-ini-option.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Théophile Bastian 2026-06-21 11:43:05 +02:00 committed by GitHub
parent b669a6e237
commit 6c7eda4a7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
minor_changes:
- "passwordstore lookup plugin - make ``directory`` configurable through ``ansible.cfg`` (https://github.com/ansible-collections/community.general/pull/12298)."

View file

@ -25,6 +25,10 @@ options:
- If O(backend=gopass), then the default is the C(path) field in C(~/.config/gopass/config.yml), falling back to V(~/.local/share/gopass/stores/root)
if C(path) is not defined in the gopass config.
type: path
ini:
- section: passwordstore_lookup
key: directory
version_added: 13.2.0
vars:
- name: passwordstore
env: