Skip to content

Instantly share code, notes, and snippets.

@srkiNZ84
Created December 8, 2016 20:58
Show Gist options
  • Save srkiNZ84/77ff8629d35fa696d24334278198afe7 to your computer and use it in GitHub Desktop.
Save srkiNZ84/77ff8629d35fa696d24334278198afe7 to your computer and use it in GitHub Desktop.
- 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