ansible/ansible — pull request #2331 by lwade (2013-03-07 14:37:20+00:00)
Title: Adding a basic S3 module

Hey folks,

Here are the beginnings of an S3 module. It aims to be idempotent and supports basic put and get operations on a single file with state options. Like the ec2* modules, it uses a boto wrapper to achieve this, which makes it fairly straight forward. It works with both S3 and Eucalyptus. It returns just one variable upon a put operation, which is a timed-expiry URL to download the object (key).

I'm putting this up for review but it works ok. I'd like to extend in the future to do "more stuff" but hopefully this gets some interest.

As a sidenote, I love using up the worlds supply of conditionals (as bcoca would put it :D) but it might be nice to expand the module development pages to include some tips n tricks for making a module idempotent (stuff to think about, what to avoid etc.).