{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/14641","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/14641/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/14641/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/14641/events","html_url":"https://github.com/ansible/ansible/issues/14641","id":136102475,"number":14641,"title":"ansible_local var no longer available.","user":{"login":"sudochop","id":1541891,"avatar_url":"https://avatars.githubusercontent.com/u/1541891?v=3","gravatar_id":"","url":"https://api.github.com/users/sudochop","html_url":"https://github.com/sudochop","followers_url":"https://api.github.com/users/sudochop/followers","following_url":"https://api.github.com/users/sudochop/following{/other_user}","gists_url":"https://api.github.com/users/sudochop/gists{/gist_id}","starred_url":"https://api.github.com/users/sudochop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudochop/subscriptions","organizations_url":"https://api.github.com/users/sudochop/orgs","repos_url":"https://api.github.com/users/sudochop/repos","events_url":"https://api.github.com/users/sudochop/events{/privacy}","received_events_url":"https://api.github.com/users/sudochop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/affects_1.9","name":"affects_1.9","color":"5319e7"},{"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/triage","name":"triage","color":"0e8a16"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ansible/ansible/milestones/8","html_url":"https://github.com/ansible/ansible/milestones/2.2.0","labels_url":"https://api.github.com/repos/ansible/ansible/milestones/8/labels","id":1702615,"number":8,"title":"2.2.0","description":"","creator":{"login":"sivel","id":39340,"avatar_url":"https://avatars.githubusercontent.com/u/39340?v=3","gravatar_id":"","url":"https://api.github.com/users/sivel","html_url":"https://github.com/sivel","followers_url":"https://api.github.com/users/sivel/followers","following_url":"https://api.github.com/users/sivel/following{/other_user}","gists_url":"https://api.github.com/users/sivel/gists{/gist_id}","starred_url":"https://api.github.com/users/sivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivel/subscriptions","organizations_url":"https://api.github.com/users/sivel/orgs","repos_url":"https://api.github.com/users/sivel/repos","events_url":"https://api.github.com/users/sivel/events{/privacy}","received_events_url":"https://api.github.com/users/sivel/received_events","type":"User","site_admin":false},"open_issues":146,"closed_issues":336,"state":"open","created_at":"2016-04-12T23:10:49Z","updated_at":"2016-10-25T16:55:19Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-02-24T15:58:49Z","updated_at":"2016-10-25T17:14:11Z","closed_at":null,"body":"##### Issue Type:\r\n\r\n - Bug Report\r\n\r\n##### Ansible Version:\r\n\r\n```\r\nansible 1.9.4\r\n  configured module search path = None\r\n```\r\n\r\n##### Environment:\r\n\r\nOSX to CentOS\r\n\r\n##### Summary:\r\n\r\nSince upgrading, my machine specific facts cannot be found. I am setting facts in `/etc/ansible/facts.d`, and since upgrading, I now just receive this error when trying to access them in my template:\r\n\r\n```\r\n{'msg': \"AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute 'ansible_local'\", 'failed': True}\r\n```\r\n\r\nThe part of my jinja template in question:\r\n\r\n```\r\n{% for host in groups['ec2'] %}\r\n{{ hostvars[host]['ansible_default_ipv4']['address'] }} {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_local']['app']['hostname'] }} \r\n{% endfor %}\r\n```\r\n\r\nI'm not entirely sure which version I was running before upgrading to latest - but this immediately stopped working after upgrading.\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/256099373","html_url":"https://github.com/ansible/ansible/issues/14641#issuecomment-256099373","issue_url":"https://api.github.com/repos/ansible/ansible/issues/14641","id":256099373,"user":{"login":"ryansb","id":636610,"avatar_url":"https://avatars.githubusercontent.com/u/636610?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansb","html_url":"https://github.com/ryansb","followers_url":"https://api.github.com/users/ryansb/followers","following_url":"https://api.github.com/users/ryansb/following{/other_user}","gists_url":"https://api.github.com/users/ryansb/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansb/subscriptions","organizations_url":"https://api.github.com/users/ryansb/orgs","repos_url":"https://api.github.com/users/ryansb/repos","events_url":"https://api.github.com/users/ryansb/events{/privacy}","received_events_url":"https://api.github.com/users/ryansb/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T17:14:11Z","updated_at":"2016-10-25T17:14:11Z","body":"needs_info"}}
{"actor":{"display_login":"ryansb"}}