{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/9508","labels_url":"https://api.github.com/repos/ansible/ansible/issues/9508/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/9508/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/9508/events","html_url":"https://github.com/ansible/ansible/issues/9508","id":47992354,"number":9508,"title":"Ansible 1.8 (devel) shell/command & checkmode produce conflicting results","user":{"login":"jfchevrette","id":3001,"avatar_url":"https://avatars.githubusercontent.com/u/3001?v=3","gravatar_id":"","url":"https://api.github.com/users/jfchevrette","html_url":"https://github.com/jfchevrette","followers_url":"https://api.github.com/users/jfchevrette/followers","following_url":"https://api.github.com/users/jfchevrette/following{/other_user}","gists_url":"https://api.github.com/users/jfchevrette/gists{/gist_id}","starred_url":"https://api.github.com/users/jfchevrette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfchevrette/subscriptions","organizations_url":"https://api.github.com/users/jfchevrette/orgs","repos_url":"https://api.github.com/users/jfchevrette/repos","events_url":"https://api.github.com/users/jfchevrette/events{/privacy}","received_events_url":"https://api.github.com/users/jfchevrette/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/P2","name":"P2","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-11-06T17:48:33Z","updated_at":"2015-03-29T23:33:35Z","closed_at":"2015-02-13T19:19:31Z","body":"##### Issue Type:\r\n\r\nBug Report\r\n\r\n##### Ansible Version:\r\n\r\n```\r\nansible-playbook 1.8 (devel 394ebe7947) last updated 2014/11/06 12:40:23 (GMT -400)\r\n  lib/ansible/modules/core: (detached HEAD 63e81cfc2e) last updated 2014/11/03 11:06:51 (GMT -400)\r\n  lib/ansible/modules/extras: (detached HEAD a0df36c6ab) last updated 2014/11/03 11:06:53 (GMT -400)\r\n  v2/ansible/modules/core: (detached HEAD cb69744bce) last updated 2014/11/03 11:06:54 (GMT -400)\r\n  v2/ansible/modules/extras: (detached HEAD 8a4f07eecd) last updated 2014/11/03 11:06:56 (GMT -400)\r\n  configured module search path = None\r\n```\r\n\r\n##### Environment:\r\n\r\nOS X 10.10 client\r\nCentOS 6.6 server/hosts\r\n\r\n##### Summary:\r\n\r\nWhen running a command or shell task with --check it procuded two conflicting results \r\n\r\n##### Steps To Reproduce:\r\n\r\n1. Create a playbook with a command or shell action.\r\n2. Run the playbook with --check\r\n\r\n##### Actual Results:\r\n```\r\nTASK: [some task] *************************************************************\r\nskipping: [s001]\r\nok: [s001] => {\"msg\": \"check mode not supported for command\", \"skipped\": true}\r\nskipping: [s002]\r\nok: [s002] => {\"msg\": \"check mode not supported for command\", \"skipped\": true}\r\n```\r\n##### Expected Results:\r\n```\r\nTASK: [some task] *************************************************************\r\nskipping: [s001]\r\nskipping: [s002]\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/87497674","html_url":"https://github.com/ansible/ansible/issues/9508#issuecomment-87497674","issue_url":"https://api.github.com/repos/ansible/ansible/issues/9508","id":87497674,"user":{"login":"drzraf","id":1169926,"avatar_url":"https://avatars.githubusercontent.com/u/1169926?v=3","gravatar_id":"","url":"https://api.github.com/users/drzraf","html_url":"https://github.com/drzraf","followers_url":"https://api.github.com/users/drzraf/followers","following_url":"https://api.github.com/users/drzraf/following{/other_user}","gists_url":"https://api.github.com/users/drzraf/gists{/gist_id}","starred_url":"https://api.github.com/users/drzraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drzraf/subscriptions","organizations_url":"https://api.github.com/users/drzraf/orgs","repos_url":"https://api.github.com/users/drzraf/repos","events_url":"https://api.github.com/users/drzraf/events{/privacy}","received_events_url":"https://api.github.com/users/drzraf/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T23:33:35Z","updated_at":"2015-03-29T23:33:35Z","body":"when shell or command is given a \"when\" clause, then the result of the \"when\" evaluation should definitely be part of the output in --check mode"}}