{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/10847","labels_url":"https://api.github.com/repos/ansible/ansible/issues/10847/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/10847/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/10847/events","html_url":"https://github.com/ansible/ansible/issues/10847","id":71363100,"number":10847,"title":"[get_url] DNS resolution is done on the controller, not the target","user":{"login":"xicesky","id":663399,"avatar_url":"https://avatars.githubusercontent.com/u/663399?v=3","gravatar_id":"","url":"https://api.github.com/users/xicesky","html_url":"https://github.com/xicesky","followers_url":"https://api.github.com/users/xicesky/followers","following_url":"https://api.github.com/users/xicesky/following{/other_user}","gists_url":"https://api.github.com/users/xicesky/gists{/gist_id}","starred_url":"https://api.github.com/users/xicesky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xicesky/subscriptions","organizations_url":"https://api.github.com/users/xicesky/orgs","repos_url":"https://api.github.com/users/xicesky/repos","events_url":"https://api.github.com/users/xicesky/events{/privacy}","received_events_url":"https://api.github.com/users/xicesky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-27T18:21:44Z","updated_at":"2015-04-27T19:37:22Z","closed_at":null,"body":"get_url sometimes fails, if the DNS configuration on the ansible controller is wrong. Names seems to be resolved on the controller, then sent to the client (i suspect).\r\n\r\nSteps to reproduce:\r\nConfigure your controller to mis-resolve a hostname, e.g. by inserting into /etc/hosts:\r\n1.2.3.4 github.com\r\n\r\nTry to download a file on the target machine via get_url, this then fails, because the target machine cannot find github.com at the IP address 1.2.3.4.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/96791548","html_url":"https://github.com/ansible/ansible/issues/10847#issuecomment-96791548","issue_url":"https://api.github.com/repos/ansible/ansible/issues/10847","id":96791548,"user":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T19:37:22Z","updated_at":"2015-04-27T19:37:22Z","body":"soo, I'm not able to reproduce this, also to note that get_url always gets executed on the target and passed the paramaters via file, ansible should not be resolving any parameters unless you are asking it to. lookup('pipe', 'dig ' + hostname + '|grep...' )"}}