As discussed previously in the past on the list, the current AWS S3 module doesn’t work with files upload as multi-part (done automatically for example when using the awsCLI tools to sync a folder)
https://github.com/ansible/ansible/issues/5442
https://groups.google.com/d/topic/ansible-project/Dg7aAmpoS2A/discussion
The current behaviour is that it fails if the file was upload as multi-part, propose a new attribute to the module called syncstrategy with following values:
- md5 (default) - same behaviour as now
- sizeandtime - use timestamp and filesize to see if files needs to be downloaded/uploaded (this is similar to native s3 sync command)
- sizeonly - use file size only to compare to see if files needs to be downloaded/uploaded (there is a similar option native s3 sync command)
Does this sound like a reasonable approach if so I can submit a PR?
thanks
Andy