diff --git a/changelogs/fragments/12298-passwordstore-directory-as-ini-option.yml b/changelogs/fragments/12298-passwordstore-directory-as-ini-option.yml new file mode 100644 index 0000000000..f4e856c445 --- /dev/null +++ b/changelogs/fragments/12298-passwordstore-directory-as-ini-option.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - "passwordstore lookup plugin - make ``directory`` configurable through ``ansible.cfg`` (https://github.com/ansible-collections/community.general/pull/12298)." diff --git a/plugins/lookup/passwordstore.py b/plugins/lookup/passwordstore.py index d3b94cdae8..682da38c72 100644 --- a/plugins/lookup/passwordstore.py +++ b/plugins/lookup/passwordstore.py @@ -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: