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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f981c2d3-b359-4770-8851-958dac181e95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to