Download multiple files from S3

21 views
Skip to first unread message

Suporter

unread,
Feb 7, 2018, 1:21:51 AM2/7/18
to Ansible Project
How can i download multiple files from same bucket, can we use wildcard for this? i am confused a bit
  -  name: Download from S3
     s3:
       profile: iupdate
       region: ap-southeast-1
       bucket: reareses
       object: sdaces/{{item}}
       with_fileglob: "*.zip"
       dest: "/home/ec2-user/sd/froms3"
       mode: get



Andrew Latham

unread,
Feb 7, 2018, 9:34:34 AM2/7/18
to ansible...@googlegroups.com
Something like https://stackoverflow.com/a/35640797 would work. You can search and re-register the list if you only want .zip

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/72b2876a-8886-4da8-af7b-3fcf84e4ecb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
- Andrew "lathama" Latham -
Reply all
Reply to author
Forward
0 new messages