# get\_url module failed when we download file from ftp with username and password

**URL:** <https://forum.ansible.com/t/get-url-module-failed-when-we-download-file-from-ftp-with-username-and-password/21627>\
**Category:** Ansible Project\
**Created:** [June 1, 2016, 9:25am UTC](https://forum.ansible.com/t/get-url-module-failed-when-we-download-file-from-ftp-with-username-and-password/21627 "2016-06-01T09:25:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawan\_kumar2](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pawan\_kumar2](https://forum.ansible.com/u/pawan_kumar2)\
**Post date:** [June 1, 2016, 9:25am UTC](https://forum.ansible.com/t/get-url-module-failed-when-we-download-file-from-ftp-with-username-and-password/21627/1 "2016-06-01T09:25:06Z")

</div>

fatal: [192.168.0.111]: FAILED! =\> {“changed”: false, “dest”: “/root/”, “failed”: true, “gid”: 0, “group”: “root”, “mode”: “0755”, “msg”: “Request failed”, “owner”: “root”, “response”: “OK (unknown bytes)”, “secontext”: “unconfined\_u:object\_r:admin\_home\_t:s0”, “size”: 4096, “state”: “directory”, “status\_code”: null, “uid”: 0, “url”: “ftp://username:password@121.221.2.210/files/contracts\_info.zip”}

// when i run my yml file than it gives above like error how to fix the ftp to download files.

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [June 1, 2016, 12:59pm UTC](https://forum.ansible.com/t/get-url-module-failed-when-we-download-file-from-ftp-with-username-and-password/21627/2 "2016-06-01T12:59:31Z")

</div>

As crystal balls are pretty hard to read, could you provide your yml  
file (redacted, of course)?

Johannes
