{"action":"created","issue":{"url":"https://api.github.com/repos/zzet/ansible-rbenv-role/issues/33","labels_url":"https://api.github.com/repos/zzet/ansible-rbenv-role/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/zzet/ansible-rbenv-role/issues/33/comments","events_url":"https://api.github.com/repos/zzet/ansible-rbenv-role/issues/33/events","html_url":"https://github.com/zzet/ansible-rbenv-role/pull/33","id":58911730,"number":33,"title":"Don't skip ruby version checking in check mode","user":{"login":"i-am-jd","id":520194,"avatar_url":"https://avatars.githubusercontent.com/u/520194?v=3","gravatar_id":"","url":"https://api.github.com/users/i-am-jd","html_url":"https://github.com/i-am-jd","followers_url":"https://api.github.com/users/i-am-jd/followers","following_url":"https://api.github.com/users/i-am-jd/following{/other_user}","gists_url":"https://api.github.com/users/i-am-jd/gists{/gist_id}","starred_url":"https://api.github.com/users/i-am-jd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-am-jd/subscriptions","organizations_url":"https://api.github.com/users/i-am-jd/orgs","repos_url":"https://api.github.com/users/i-am-jd/repos","events_url":"https://api.github.com/users/i-am-jd/events{/privacy}","received_events_url":"https://api.github.com/users/i-am-jd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-25T14:48:06Z","updated_at":"2015-02-25T15:11:52Z","closed_at":"2015-02-25T15:05:06Z","pull_request":{"url":"https://api.github.com/repos/zzet/ansible-rbenv-role/pulls/33","html_url":"https://github.com/zzet/ansible-rbenv-role/pull/33","diff_url":"https://github.com/zzet/ansible-rbenv-role/pull/33.diff","patch_url":"https://github.com/zzet/ansible-rbenv-role/pull/33.patch"},"body":"Hi, this fixes a crash when executing this role in check mode:\r\n\r\n```\r\nTASK: [rbenv | install ruby {{ rbenv.ruby_version }} for select users] ********\r\nfatal: [...] => error while evaluating conditional: (not \"system\" == \"user\") and (item[0].rc != 0)\r\nFATAL: all hosts have already failed -- aborting\r\n```\r\n This fails because the previous task `check ruby {{ rbenv.ruby_version }} installed for select users` was skipped, which means there is no value for item[0].rc in the task that fails.\r\n\r\nThank you veru much for this role, it's been immensely useful to us."},"comment":{"url":"https://api.github.com/repos/zzet/ansible-rbenv-role/issues/comments/75976719","html_url":"https://github.com/zzet/ansible-rbenv-role/pull/33#issuecomment-75976719","issue_url":"https://api.github.com/repos/zzet/ansible-rbenv-role/issues/33","id":75976719,"user":{"login":"zzet","id":510788,"avatar_url":"https://avatars.githubusercontent.com/u/510788?v=3","gravatar_id":"","url":"https://api.github.com/users/zzet","html_url":"https://github.com/zzet","followers_url":"https://api.github.com/users/zzet/followers","following_url":"https://api.github.com/users/zzet/following{/other_user}","gists_url":"https://api.github.com/users/zzet/gists{/gist_id}","starred_url":"https://api.github.com/users/zzet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzet/subscriptions","organizations_url":"https://api.github.com/users/zzet/orgs","repos_url":"https://api.github.com/users/zzet/repos","events_url":"https://api.github.com/users/zzet/events{/privacy}","received_events_url":"https://api.github.com/users/zzet/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T15:11:52Z","updated_at":"2015-02-25T15:11:52Z","body":"@i-am-jd role updated on Galaxy"}}