I tried something like this but it didn't seem to work:

---
- name: Bamboo -> S3 push
  hosts: 127.0.0.1
  connection: local


  tasks:
    - name: test pull/put file from Bamboo to S3
      s3: bucket=my_bucket object=/software-repo/
redis-2.6.14-1td.el6.x86_64.rpm 
src=http://192.168.0.10/apps/RPMS/redis-2.6.14-1td.el6.x86_64.rpm 
mode=put


# vim:ft=ansible:

Then when I ran it:


$ ansible-playbook -i inv/hosts s3_test.yml


PLAY [Bamboo -> S3 push] 
*******************************************************


TASK [setup] 
*******************************************************************
ok: [127.0.0.1]


TASK [test pull/put file from Bamboo to S3] 
************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "Local 
object for PUT does not exist"}


NO MORE HOSTS LEFT 
*************************************************************


PLAY RECAP 
*********************************************************************
127.0.0.1                  : ok=1    changed=0    unreachable=0    failed=1

So does the s3 module simply not support a source from anything but the 
local filesystem?

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0a47be45-2c0c-4684-8533-7bb75c5d5970%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to