{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/7786","labels_url":"https://api.github.com/repos/ansible/ansible/issues/7786/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/7786/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/7786/events","html_url":"https://github.com/ansible/ansible/issues/7786","id":35757131,"number":7786,"title":"role parameter comparison error","user":{"login":"tom--","id":1178722,"avatar_url":"https://avatars.githubusercontent.com/u/1178722?v=3","gravatar_id":"","url":"https://api.github.com/users/tom--","html_url":"https://github.com/tom--","followers_url":"https://api.github.com/users/tom--/followers","following_url":"https://api.github.com/users/tom--/following{/other_user}","gists_url":"https://api.github.com/users/tom--/gists{/gist_id}","starred_url":"https://api.github.com/users/tom--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom--/subscriptions","organizations_url":"https://api.github.com/users/tom--/orgs","repos_url":"https://api.github.com/users/tom--/repos","events_url":"https://api.github.com/users/tom--/events{/privacy}","received_events_url":"https://api.github.com/users/tom--/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":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-06-15T20:22:22Z","updated_at":"2015-06-22T15:46:04Z","closed_at":"2015-06-22T15:46:04Z","body":"##### Issue Type:\r\n\r\nBug Report\r\n\r\n##### Ansible Version:\r\n\r\nansible 1.6.3\r\n\r\n##### Environment:\r\n\r\nDarwin fsb.thefsb.org 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64\r\n\r\nControl host is the same as target\r\n\r\n##### Summary:\r\n\r\nThe [gist](https://gist.github.com/tom--/71b79f7b777bd5257590) shows that a parameter named `param` passed into a role has the value `\"ansible\"` and that the expression `param == 'ansible'` is false. That `param`'s argument is read from `hostvars` seems relevant since another parameter with a string literal argument doesn't show the same pathology.\r\n\r\n##### Steps To Reproduce:\r\n\r\nhttps://gist.github.com/tom--/71b79f7b777bd5257590\r\n\r\n##### Expected Results:\r\n\r\n`param_eq_ansible` should have the value `\"yes\"`\r\n\r\n##### Actual Results:\r\n\r\n`param_eq_ansible` has the value `\"no\"`\r\n"}}