This repository was archived by the owner on Jun 18, 2021. It is now read-only.
Add a lookup plugin for pass#136
Closed
joshmoore wants to merge 2 commits into
Closed
Conversation
Copied from https://github.com/gcoop-libre/ansible-lookup-plugin-pass, this lookup plugin permits reading encrypted values using https://www.passwordstore.org By settings ANSIBLE_PASS_PASSWORD_STORE_DIR globally, a non-standard credentials directory can be chosen. ``` --- - hosts: localhost connection: local gather_facts: False tasks: - debug: msg="{{ lookup('pass', item) }}" with_items: - "ci/snoopy/sshconfig" ``` Also looked at: * https://github.com/Dissonant-Tech/ansible-lookup-pass * https://github.com/morphje/ansible_pass_lookup * https://github.com/lbischof/ansible-role-pass
Member
Author
|
For discussion, primary issue with this seems to be making the jenkins role ever less re-usable. Considering the difficult of setting up |
Member
Author
|
Note: this needs a modification to prevent the generation of passwords unless a flag is set. |
Rather than create a password when none exists, require the user to set a length > 0. This is especially useful for detecting that no PASSWORD_STORE_DIR or similar is unset.
Member
Author
|
From discussion:
|
Closed
Member
Author
|
Very cool. Happy to update this as soon as we move to ansible 2.3. |
Member
Author
|
Closing this in favor of using Ansible 2.3's |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copied from https://github.com/gcoop-libre/ansible-lookup-plugin-pass,
this lookup plugin permits reading encrypted values using https://www.passwordstore.org
By settings ANSIBLE_PASS_PASSWORD_STORE_DIR globally, a non-standard
credentials directory can be chosen.
Also looked at: