I have a script that downloads stuff from amazon S3

Downloading file works perfectly but in one scenario i want to download 
whole directory from the bucket.

Ansible seems to require *file name* in object and destination

Is anyone aware of how to do this?

Code to download file from amazon S3


*s3: bucket={{bucket_name}} object={{filename_to_download}} 
dest={{destination_dir}}/{{src_filename}}  s3_url={{amazon_s3_url}} 
mode=get*

Code I tried to download whole dir (want to download all files in current 
dir)


*s3: bucket={{bucket_name}} object=/resource/current/ 
dest={{destination_dir}}/current/  s3_url={{amazon_s3_url}} mode=get*i get 
following error




* IOError: [Errno 21] Is a directory: '/destination/current/'*
Thanks

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to