1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-03 17:18:54 +00:00

[PR #12298/6c7eda4a backport][stable-13] Passwordstore lookup: make directory an INI option (#12301)

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



---------


(cherry picked from commit 6c7eda4a7b)

Co-authored-by: Théophile Bastian <contact@tobast.fr>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2026-06-21 12:06:11 +02:00 committed by GitHub
parent 7d8c892a49
commit cd4d9869d2
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: