# Unable to download the file using the get\_url

**URL:** <https://forum.ansible.com/t/unable-to-download-the-file-using-the-get-url/25352>\
**Category:** Ansible Project\
**Created:** [August 29, 2017, 9:48am UTC](https://forum.ansible.com/t/unable-to-download-the-file-using-the-get-url/25352 "2017-08-29T09:48:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkishankalyan](https://avatars.discourse-cdn.com/v4/letter/v/f475e1/32.png) [@vkishankalyan](https://forum.ansible.com/u/vkishankalyan)\
**Post date:** [August 29, 2017, 9:48am UTC](https://forum.ansible.com/t/unable-to-download-the-file-using-the-get-url/25352/1 "2017-08-29T09:48:11Z")

</div>

I am using the below playbook

- name: Downloading the file from URL  
get\_url:  
url: “http://{{url\_path\_with\_file\_name}}”  
dest: /tmp/

Command i used is  
ansible-playbook -vvvv test.ymal --extra-vars “url\_path\_with\_file\_name=[examle.net/filename.tar](http://examle.net/filename.tar)”

Error :

“mode”: “0750”,  
“msg”: “Request failed: \<urlopen error [Errno -2] Name or service not known\>”,  
“owner”: “root”,  
“secontext”: “unconfined\_u:object\_r:user\_home\_t:s0”,  
“size”: 4096,  
“state”: “directory”,  
“uid”: 0,  
“url”: “[examle.net/filename.tar](http://examle.net/filename.tar)”

But i am able to downlaod the same when i tried opening the file from chrome

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [August 29, 2017, 11:45am UTC](https://forum.ansible.com/t/unable-to-download-the-file-using-the-get-url/25352/2 "2017-08-29T11:45:42Z")

</div>

Chrome runs on a different machine, and under a different user  
account, than the machine you're targeting with the playbook (I hope).

Try signing in to the target host and see if you can "sudo wget  
[http://examle.net/filename.tar&quot](http://examle.net/filename.tar&quot);

Dick
