Skip to content

Instantly share code, notes, and snippets.

@dgm
Created February 6, 2018 00:23
Show Gist options
  • Save dgm/ef28176dbfeb6e79e8965bff76515843 to your computer and use it in GitHub Desktop.
Save dgm/ef28176dbfeb6e79e8965bff76515843 to your computer and use it in GitHub Desktop.
- name: get app source
aws_s3:
aws_access_key: "{{ lookup('ini', 'aws_access_key_id section=default file=~/.aws/credentials') }}"
aws_secret_key: "{{ lookup('ini', 'aws_secret_access_key section=default file=~/.aws/credentials') }}"
bucket: my_bucket
object: /files/my_app.tar.gz
dest: /home/app/my_app.tar.gz
mode: get
environment:
S3_USE_SIGV4: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment