Does the s3 module support a src from a URL?

14 views
Skip to first unread message

Sam Mingolelli

unread,
May 13, 2016, 4:44:52 PM5/13/16
to Ansible Project
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?
Reply all
Reply to author
Forward
0 new messages