{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/5798","labels_url":"https://api.github.com/repos/ansible/ansible/issues/5798/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/5798/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/5798/events","html_url":"https://github.com/ansible/ansible/issues/5798","id":26451040,"number":5798,"title":"ANSI color appears in linux ssh command ","user":{"login":"athoune","id":74048,"avatar_url":"https://avatars.githubusercontent.com/u/74048?v=3","gravatar_id":"","url":"https://api.github.com/users/athoune","html_url":"https://github.com/athoune","followers_url":"https://api.github.com/users/athoune/followers","following_url":"https://api.github.com/users/athoune/following{/other_user}","gists_url":"https://api.github.com/users/athoune/gists{/gist_id}","starred_url":"https://api.github.com/users/athoune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athoune/subscriptions","organizations_url":"https://api.github.com/users/athoune/orgs","repos_url":"https://api.github.com/users/athoune/repos","events_url":"https://api.github.com/users/athoune/events{/privacy}","received_events_url":"https://api.github.com/users/athoune/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/P5","name":"P5","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-01-28T15:42:07Z","updated_at":"2015-06-18T15:16:32Z","closed_at":null,"body":"With a Mac, \r\n```\r\n$ ansible --version\r\nansible 1.4.4\r\n$ ansible -vvv -i hosts -u root all -m ping\r\n\r\n<plop-tests> ESTABLISH CONNECTION FOR USER: root on PORT 22 TO plop-tests\r\n<plop-tests> EXEC /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1390922238.14-46311863747650 && echo $HOME/.ansible/tmp/ansible-1390922238.14-46311863747650'\r\n<plop-tests> REMOTE_MODULE ping\r\n<plop-tests> PUT /var/folders/nn/qhqqgrrj4q39z5txmy4t6fcc0000gn/T/tmpSkVEZd TO /root/.ansible/tmp/ansible-1390922238.14-46311863747650/ping\r\n<plop-tests> PUT /var/folders/nn/qhqqgrrj4q39z5txmy4t6fcc0000gn/T/tmpHd2s2n TO /root/.ansible/tmp/ansible-1390922238.14-46311863747650/arguments\r\n<plop-tests> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-1390922238.14-46311863747650/ping /root/.ansible/tmp/ansible-1390922238.14-46311863747650/arguments; rm -rf /root/.ansible/tmp/ansible-1390922238.14-46311863747650/ >/dev/null 2>&1'\r\nplop-tests | success >> {\r\n    \"changed\": false,\r\n    \"ping\": \"pong\"\r\n}\r\n```\r\nWith a Debian 7\r\n```\r\n$ ansible --version\r\nansible 1.4.4\r\n$ ansible -vvv -i hosts -u root all -m ping\r\n<plop-tests> ESTABLISH CONNECTION FOR USER: root\r\n<plop-tests> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/mlecarme/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=root', '-o', 'ConnectTimeout=10', 'plop-tests', \"/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1390921423.75-253221704312921 && echo $HOME/.ansible/tmp/ansible-1390921423.75-253221704312921'\"]\r\n<plop-tests> REMOTE_MODULE ping\r\n<plop-tests> PUT /tmp/tmpoKpX02 TO /root/.ansible/tmp/ansible-1390921423.75-253221704312921/ping\r\n<plop-tests> PUT /tmp/tmpLTrrZO TO /root/.ansible/tmp/ansible-1390921423.75-253221704312921/arguments\r\n<plop-tests> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/mlecarme/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=root', '-o', 'ConnectTimeout=10', 'plop-tests', \"/bin/sh -c '/usr/bin/python \\x1b]0;root@plop-tests\\x07/root/.ansible/tmp/ansible-1390921423.75-253221704312921/ping \\x1b]0;root@plop-tests\\x07/root/.ansible/tmp/ansible-1390921423.75-253221704312921/arguments; rm -rf \\x1b]0;root@plop-tests\\x07/root/.ansible/tmp/ansible-1390921423.75-253221704312921/ >/dev/null 2>&1'\"]\r\nplop-tests | FAILED >> {\r\n    \"failed\": true,\r\n    \"msg\": \"\\u001b]0;root@plop-tests\\u0007/usr/bin/python: can't open file '\\u001b]0': [Errno 2] No such file or directory\\r\\n/bin/sh: 1: root@plop-tests\\u0007/root/.ansible/tmp/ansible-1390921423.75-253221704312921/ping: not found\\r\\n/bin/sh: 1: root@plop-tests\\u0007/root/.ansible/tmp/ansible-1390921423.75-253221704312921/arguments: not found\\r\\n\",\r\n    \"parsed\": false\r\n}\r\n```\r\nWhere does *\\x1b]0;* came from? Is there a trick to remove this dirt from my command line?\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/113189315","html_url":"https://github.com/ansible/ansible/issues/5798#issuecomment-113189315","issue_url":"https://api.github.com/repos/ansible/ansible/issues/5798","id":113189315,"user":{"login":"jimi-c","id":26403,"avatar_url":"https://avatars.githubusercontent.com/u/26403?v=3","gravatar_id":"","url":"https://api.github.com/users/jimi-c","html_url":"https://github.com/jimi-c","followers_url":"https://api.github.com/users/jimi-c/followers","following_url":"https://api.github.com/users/jimi-c/following{/other_user}","gists_url":"https://api.github.com/users/jimi-c/gists{/gist_id}","starred_url":"https://api.github.com/users/jimi-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimi-c/subscriptions","organizations_url":"https://api.github.com/users/jimi-c/orgs","repos_url":"https://api.github.com/users/jimi-c/repos","events_url":"https://api.github.com/users/jimi-c/events{/privacy}","received_events_url":"https://api.github.com/users/jimi-c/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T15:16:32Z","updated_at":"2015-06-18T15:16:32Z","body":"Hi @athoune, going through older issues to see if they've been corrected by the v2 (ansible 2.0) work that is live in devel now. Could you please let us know if you're still seeing this issue? I don't think we've had any other Debian 7 users report this."}}