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