{"action":"created","issue":{"url":"https://api.github.com/repos/phansible/phansible/issues/112","labels_url":"https://api.github.com/repos/phansible/phansible/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/phansible/phansible/issues/112/comments","events_url":"https://api.github.com/repos/phansible/phansible/issues/112/events","html_url":"https://github.com/phansible/phansible/issues/112","id":50510094,"number":112,"title":"Hostname is not defined.","user":{"login":"naxhh","id":944635,"avatar_url":"https://avatars.githubusercontent.com/u/944635?v=3","gravatar_id":"","url":"https://api.github.com/users/naxhh","html_url":"https://github.com/naxhh","followers_url":"https://api.github.com/users/naxhh/followers","following_url":"https://api.github.com/users/naxhh/following{/other_user}","gists_url":"https://api.github.com/users/naxhh/gists{/gist_id}","starred_url":"https://api.github.com/users/naxhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naxhh/subscriptions","organizations_url":"https://api.github.com/users/naxhh/orgs","repos_url":"https://api.github.com/users/naxhh/repos","events_url":"https://api.github.com/users/naxhh/events{/privacy}","received_events_url":"https://api.github.com/users/naxhh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phansible/phansible/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/phansible/phansible/labels/bug+1.0","name":"bug 1.0","color":"e11d21"},{"url":"https://api.github.com/repos/phansible/phansible/labels/Waiting+Deployment","name":"Waiting Deployment","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"naxhh","id":944635,"avatar_url":"https://avatars.githubusercontent.com/u/944635?v=3","gravatar_id":"","url":"https://api.github.com/users/naxhh","html_url":"https://github.com/naxhh","followers_url":"https://api.github.com/users/naxhh/followers","following_url":"https://api.github.com/users/naxhh/following{/other_user}","gists_url":"https://api.github.com/users/naxhh/gists{/gist_id}","starred_url":"https://api.github.com/users/naxhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naxhh/subscriptions","organizations_url":"https://api.github.com/users/naxhh/orgs","repos_url":"https://api.github.com/users/naxhh/repos","events_url":"https://api.github.com/users/naxhh/events{/privacy}","received_events_url":"https://api.github.com/users/naxhh/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2014-12-01T10:46:14Z","updated_at":"2015-01-06T10:38:57Z","closed_at":null,"body":"I've an error when running a default generated playbook using Vagrant in windows.\r\n\r\nThe error is:\r\n```\r\n==> default: TASK: [init | Update /etc/hosts] **********************************************\r\n==> default: fatal: [192.168.33.99] => One or more undefined variables: 'hostname' is undefined\r\n```\r\nYou can check the full log: http://pastebin.com/xgSLExX3\r\n\r\nChecking for #110 I've found this error.\r\n\r\nSeems that this hostname is added in the Vagrant file.\r\n\r\nDebugging the content returns:\r\n```\r\n==> default: ok: [192.168.33.99] => {\r\n==> default:     \"hostname\": \"{{ hostname }}\"\r\n==> default: }\r\n```"},"comment":{"url":"https://api.github.com/repos/phansible/phansible/issues/comments/68850437","html_url":"https://github.com/phansible/phansible/issues/112#issuecomment-68850437","issue_url":"https://api.github.com/repos/phansible/phansible/issues/112","id":68850437,"user":{"login":"Ajibola","id":537593,"avatar_url":"https://avatars.githubusercontent.com/u/537593?v=3","gravatar_id":"","url":"https://api.github.com/users/Ajibola","html_url":"https://github.com/Ajibola","followers_url":"https://api.github.com/users/Ajibola/followers","following_url":"https://api.github.com/users/Ajibola/following{/other_user}","gists_url":"https://api.github.com/users/Ajibola/gists{/gist_id}","starred_url":"https://api.github.com/users/Ajibola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ajibola/subscriptions","organizations_url":"https://api.github.com/users/Ajibola/orgs","repos_url":"https://api.github.com/users/Ajibola/repos","events_url":"https://api.github.com/users/Ajibola/events{/privacy}","received_events_url":"https://api.github.com/users/Ajibola/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T10:38:57Z","updated_at":"2015-01-06T10:38:57Z","body":"I actually used the ansible scripts generated on a linux server. Adding \"hostname: Default\" to the playbook.yml file solves this for me.\r\n\r\nI reckon this should work across the board."}}