{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3610","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3610/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3610/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3610/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3610","id":153508942,"number":3610,"title":"stderr of script module is always empty string","user":{"login":"lost-in-revery","id":19222649,"avatar_url":"https://avatars.githubusercontent.com/u/19222649?v=3","gravatar_id":"","url":"https://api.github.com/users/lost-in-revery","html_url":"https://github.com/lost-in-revery","followers_url":"https://api.github.com/users/lost-in-revery/followers","following_url":"https://api.github.com/users/lost-in-revery/following{/other_user}","gists_url":"https://api.github.com/users/lost-in-revery/gists{/gist_id}","starred_url":"https://api.github.com/users/lost-in-revery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lost-in-revery/subscriptions","organizations_url":"https://api.github.com/users/lost-in-revery/orgs","repos_url":"https://api.github.com/users/lost-in-revery/repos","events_url":"https://api.github.com/users/lost-in-revery/events{/privacy}","received_events_url":"https://api.github.com/users/lost-in-revery/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P2","name":"P2","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-06T18:18:11Z","updated_at":"2016-05-31T15:46:52Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nmodule script\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.0.1.0\r\n config file = /usr/local/etc/ansible/ansible.cfg\r\n configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\nforks = 200\r\n ssh_args = -o ControlMaster=auto -o ControlPersist=60s\r\n pipelining = True\r\n\r\n##### OS / ENVIRONMENT\r\nFreeBSD 10.x\r\n\r\n##### SUMMARY\r\n\"stderr\" is always empty. Whole output goes to \"stdout\" and \"stdout_lines\". \r\n\r\n##### STEPS TO REPRODUCE\r\n \r\n```\r\n     - name: check script output\r\n       script: check_output.sh\r\n       become: yes\r\n\r\nsample script:\r\n\r\n#!/bin/sh\r\necho \"This is STDERR string\" 1>&2\r\necho \"This is STDOUT string\"\r\n\r\n\r\n```\r\n\r\n##### EXPECTED RESULTS\r\nTASK [check script output] ***********************************************\r\nchanged: [some.host] => {\"changed\": true, \"rc\": 0, \"stderr\": \"This is STDERR string\\r\\n\", \"stdout\": \"This is STDOUT string\\r\\n\", \"stdout_lines\": [\"This is STDOUT string\"]}\r\n\r\n##### ACTUAL RESULTS\r\n\r\n```\r\nTASK [check script output] ***********************************************\r\nchanged: [some.host] => {\"changed\": true, \"rc\": 0, \"stderr\": \"\", \"stdout\": \"This is STDERR string\\r\\nThis is STDOUT string\\r\\n\", \"stdout_lines\": [\"This is STDERR string\", \"This is STDOUT string\"]}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/222730967","html_url":"https://github.com/ansible/ansible-modules-core/issues/3610#issuecomment-222730967","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3610","id":222730967,"user":{"login":"lost-in-revery","id":19222649,"avatar_url":"https://avatars.githubusercontent.com/u/19222649?v=3","gravatar_id":"","url":"https://api.github.com/users/lost-in-revery","html_url":"https://github.com/lost-in-revery","followers_url":"https://api.github.com/users/lost-in-revery/followers","following_url":"https://api.github.com/users/lost-in-revery/following{/other_user}","gists_url":"https://api.github.com/users/lost-in-revery/gists{/gist_id}","starred_url":"https://api.github.com/users/lost-in-revery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lost-in-revery/subscriptions","organizations_url":"https://api.github.com/users/lost-in-revery/orgs","repos_url":"https://api.github.com/users/lost-in-revery/repos","events_url":"https://api.github.com/users/lost-in-revery/events{/privacy}","received_events_url":"https://api.github.com/users/lost-in-revery/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T15:46:52Z","updated_at":"2016-05-31T15:46:52Z","body":"The problem still exists in version 2.1.0.0"}}
{"actor":{"display_login":"lost-in-revery"}}