ansible/ansible — pull request #2830 by ralph-tice (2013-05-02 19:30:07+00:00)
Title: amended s3 plugin to support 'dest' parameter

to allow uploading to custom location.

test.yml follows (though my debug step is incorrect or I don't know how to invoke it...):
---

- hosts: 127.0.0.1
connection: local
vars:
projectZipName: build.tgz
bucketName: my_builds

tasks:
- name: Uploading artifact to s3
action: s3 bucket={{bucketName}} path=build.tgz dest=custom/{{projenv}}/build.tgz state=present overwrite=yes expiry=900
register: downloadUrl
- name: "{{downloadUrl}} created"
action: debug msg="{{downloadUrl}} created"