{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/9791","labels_url":"https://api.github.com/repos/ansible/ansible/issues/9791/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/9791/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/9791/events","html_url":"https://github.com/ansible/ansible/issues/9791","id":51781513,"number":9791,"title":"Ansible 1.8.2 shell action doesn't handle \">\" redirect correctly","user":{"login":"mikesac","id":57402,"avatar_url":"https://avatars.githubusercontent.com/u/57402?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesac","html_url":"https://github.com/mikesac","followers_url":"https://api.github.com/users/mikesac/followers","following_url":"https://api.github.com/users/mikesac/following{/other_user}","gists_url":"https://api.github.com/users/mikesac/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesac/subscriptions","organizations_url":"https://api.github.com/users/mikesac/orgs","repos_url":"https://api.github.com/users/mikesac/repos","events_url":"https://api.github.com/users/mikesac/events{/privacy}","received_events_url":"https://api.github.com/users/mikesac/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/needs_info","name":"needs_info","color":"eb6420"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P2","name":"P2","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-12-12T08:27:40Z","updated_at":"2015-06-29T05:33:42Z","closed_at":"2015-06-29T05:33:42Z","body":"##### Issue Type:Bug Report\r\n\r\n##### Ansible Version:1.8.2\r\n\r\n##### Environment: Ubuntu 12.04 (vagrant box)\r\n\r\n##### Summary:\r\n\r\nit seems that \"shell\" action has some issue handling stdout redirect.\r\n\r\nmy action is (I've tried any kind of quoting)\r\n\r\n```\r\n - name : Dump previous database data - mysql_56\r\n   shell: \"mysqldump -u{{ item.value.user }} -p{{ item.value.pass }} {{ item.value.name }} > {{ deploy_path }}/db/{{ item.value.name }}-{{ nowdate.stdout }}.sql\"\r\n   with_dict: db\r\n```\r\nbut it always fails with error:\r\n\r\n```\r\nstderr: mysqldump: Couldn't find table: \">\"\r\n```\r\nsimply rolling-back ansible to 1.7.2 made the action back to work as usual.\r\n\r\nThis seems to be affecting any \"shell\" action with redirect within.\r\n\r\n##### Steps To Reproduce: simply run a playbook with a shell action using a \">\" redirect\r\n"}}