{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/15627","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/15627/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/15627/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/15627/events","html_url":"https://github.com/ansible/ansible/issues/15627","id":151416017,"number":15627,"title":"2.0.2.0 regression in get_url using file:// urls","user":{"login":"larsks","id":82622,"avatar_url":"https://avatars.githubusercontent.com/u/82622?v=3","gravatar_id":"","url":"https://api.github.com/users/larsks","html_url":"https://github.com/larsks","followers_url":"https://api.github.com/users/larsks/followers","following_url":"https://api.github.com/users/larsks/following{/other_user}","gists_url":"https://api.github.com/users/larsks/gists{/gist_id}","starred_url":"https://api.github.com/users/larsks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsks/subscriptions","organizations_url":"https://api.github.com/users/larsks/orgs","repos_url":"https://api.github.com/users/larsks/repos","events_url":"https://api.github.com/users/larsks/events{/privacy}","received_events_url":"https://api.github.com/users/larsks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-27T15:30:31Z","updated_at":"2016-04-27T15:30:31Z","closed_at":null,"body":"##### ISSUE TYPE\r\n\r\n - Bug Report\r\n\r\n##### ANSIBLE VERSION\r\n\r\n2.0.2.0\r\n\r\n##### CONFIGURATION\r\n\r\nN/A\r\n\r\n##### OS / ENVIRONMENT\r\n\r\nN/A\r\n\r\n##### SUMMARY\r\n\r\nIn 2.0.2.0, using `get_url` with `file://` urls fails because it is\r\nlooking for an http respond code.\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\n`touch /tmp/srcfile` and run the following playbook:\r\n\r\n    - hosts: localhost\r\n      gather_facts: false\r\n      vars:\r\n        url: file:///tmp/srcfile\r\n      tasks:\r\n\r\n        - get_url:\r\n            url: \"{{url}}\"\r\n            dest: \"./destfile\"\r\n            force: true\r\n\r\n##### EXPECTED RESULTS\r\n\r\n    PLAY ***************************************************************************\r\n\r\n    TASK [get_url] *****************************************************************\r\n    ok: [localhost]\r\n\r\n    PLAY RECAP *********************************************************************\r\n    localhost                  : ok=1    changed=0    unreachable=0    failed=0   \r\n\r\n##### ACTUAL RESULTS\r\n\r\n    PLAY [localhost] ***************************************************************\r\n\r\n    TASK [get_url] *****************************************************************\r\n    fatal: [localhost]: FAILED! => {\"changed\": false, \"dest\": \"./destfile\", \"failed\": true, \"gid\": 1000, \"group\": \"lars\", \"mode\": \"0664\", \"msg\": \"Request failed\", \"owner\": \"lars\", \"response\": \"OK (12 bytes)\", \"size\": 12, \"state\": \"file\", \"status_code\": null, \"uid\": 1000, \"url\": \"file:///tmp/srcfile\"}\r\n\r\n    NO MORE HOSTS LEFT *************************************************************\r\n      to retry, use: --limit @file_urls.retry\r\n\r\n    PLAY RECAP *********************************************************************\r\n    localhost                  : ok=0    changed=0    unreachable=0    failed=1   \r\n\r\n"}}