Created
December 8, 2016 20:58
-
-
Save srkiNZ84/77ff8629d35fa696d24334278198afe7 to your computer and use it in GitHub Desktop.
This file contains 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
- hosts: all | |
tasks: | |
- name: Put New version of credentials into DynamoDB | |
connection: local | |
command: credstash -p srdan put -a foopass blahblahblah | |
- name: Get credentials from DynamoDB | |
connection: local | |
debug: msg="Credstash lookup {{ lookup('credstash', 'foopass', profile_name='srdan') }}" | |
ignore_errors: true | |
- name: Pipe lookup fallback | |
connection: local | |
debug: msg="Pipe credstash lookup - '{{ lookup('pipe', 'credstash -p srdan get foopass') }}'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment