{"comment":{"url":"https://api.github.com/repos/ansible/ansible/comments/22238728","html_url":"https://github.com/ansible/ansible/commit/e5cd675b38d49b22f1ecc929943d016fb7159856#commitcomment-22238728","id":22238728,"user":{"login":"chrulri","id":922862,"avatar_url":"https://avatars3.githubusercontent.com/u/922862?v=3","gravatar_id":"","url":"https://api.github.com/users/chrulri","html_url":"https://github.com/chrulri","followers_url":"https://api.github.com/users/chrulri/followers","following_url":"https://api.github.com/users/chrulri/following{/other_user}","gists_url":"https://api.github.com/users/chrulri/gists{/gist_id}","starred_url":"https://api.github.com/users/chrulri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrulri/subscriptions","organizations_url":"https://api.github.com/users/chrulri/orgs","repos_url":"https://api.github.com/users/chrulri/repos","events_url":"https://api.github.com/users/chrulri/events{/privacy}","received_events_url":"https://api.github.com/users/chrulri/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"e5cd675b38d49b22f1ecc929943d016fb7159856","created_at":"2017-05-22T23:23:44Z","updated_at":"2017-05-22T23:23:44Z","body":"Hi @jimi-c \r\n\r\nAccording to my tests this does not fix #20508 because 'ansible_host' in result is None:\r\n` result={'_ansible_delegated_vars': {'ansible_host': None}, ...`\r\n\r\nWhich then results in `actual_host = Host(name=task.delegate_to)` which would be partially right (e.g. `delegate_to: node1`) but not if `task.delegate_to` consist of a template (e.g. `{{ item }}`).\r\nSo the previous problem of `task.delegate_to` not being templated but taken literally is still present. This is what #20508 is all about.\r\n\r\nMy testcase is described in #20508 "}}
{"actor":{"display_login":"chrulri"}}