Unable to download the file using the get_url

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

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

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

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;

Dick