{"action":"closed","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,"node_id":"MDU6SXNzdWUxMzYxMDI0NzU=","number":14641,"title":"ansible_local var no longer available.","user":{"login":"sudochop","id":1541891,"node_id":"MDQ6VXNlcjE1NDE4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/1541891?v=4","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":[{"id":437720529,"node_id":"MDU6TGFiZWw0Mzc3MjA1Mjk=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_1.9","name":"affects_1.9","color":"5319e7","default":false},{"id":437720699,"node_id":"MDU6TGFiZWw0Mzc3MjA2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.2","name":"affects_2.2","color":"5319e7","default":false},{"id":785271699,"node_id":"MDU6TGFiZWw3ODUyNzE2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"bcoca","id":836171,"node_id":"MDQ6VXNlcjgzNjE3MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/836171?v=4","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},"assignees":[{"login":"bcoca","id":836171,"node_id":"MDQ6VXNlcjgzNjE3MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/836171?v=4","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}],"milestone":null,"comments":29,"created_at":"2016-02-24T15:58:49Z","updated_at":"2018-08-22T14:07:10Z","closed_at":"2018-08-22T14:07:10Z","author_association":"NONE","body":"##### ISSUE TYPE\r\nBug Report\r\n\r\n##### COMPONENT NAME\r\ncore\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 1.9.4\r\nconfigured module search path = None\r\n```\r\n\r\n##### CONFIGURATION\r\n\r\n\r\n##### OS / ENVIRONMENT\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{'msg': \"AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute 'ansible_local'\", 'failed': True}\r\n```\r\nThe part of my jinja template in question:\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\nI'm not entirely sure which version I was running before upgrading to latest - but this immediately stopped working after upgrading.\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\n\r\n##### EXPECTED RESULTS\r\n\r\n\r\n##### ACTUAL RESULTS\r\n\r\n\r\n"}}
{"actor":{"display_login":"bcoca"}}