{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3757","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3757/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3757/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3757/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3757","id":157058654,"number":3757,"title":"Raw module adds \"&& Sleep 0\" to ssh remote command argument","user":{"login":"sgerhart","id":5831409,"avatar_url":"https://avatars.githubusercontent.com/u/5831409?v=3","gravatar_id":"","url":"https://api.github.com/users/sgerhart","html_url":"https://github.com/sgerhart","followers_url":"https://api.github.com/users/sgerhart/followers","following_url":"https://api.github.com/users/sgerhart/following{/other_user}","gists_url":"https://api.github.com/users/sgerhart/gists{/gist_id}","starred_url":"https://api.github.com/users/sgerhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgerhart/subscriptions","organizations_url":"https://api.github.com/users/sgerhart/orgs","repos_url":"https://api.github.com/users/sgerhart/repos","events_url":"https://api.github.com/users/sgerhart/events{/privacy}","received_events_url":"https://api.github.com/users/sgerhart/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"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones/4","html_url":"https://github.com/ansible/ansible-modules-core/milestones/2.2.0","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones/4/labels","id":1756290,"number":4,"title":"2.2.0","description":"","creator":{"login":"alikins","id":15162,"avatar_url":"https://avatars.githubusercontent.com/u/15162?v=3","gravatar_id":"","url":"https://api.github.com/users/alikins","html_url":"https://github.com/alikins","followers_url":"https://api.github.com/users/alikins/followers","following_url":"https://api.github.com/users/alikins/following{/other_user}","gists_url":"https://api.github.com/users/alikins/gists{/gist_id}","starred_url":"https://api.github.com/users/alikins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alikins/subscriptions","organizations_url":"https://api.github.com/users/alikins/orgs","repos_url":"https://api.github.com/users/alikins/repos","events_url":"https://api.github.com/users/alikins/events{/privacy}","received_events_url":"https://api.github.com/users/alikins/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":18,"state":"open","created_at":"2016-05-09T19:02:33Z","updated_at":"2016-06-29T16:32:50Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-05-26T19:20:50Z","updated_at":"2016-07-01T15:41:06Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/module/task -->\r\nraw module\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.2.0\r\n  config file = /home/cisco/Seminar_Playbooks/Cisco/CSR/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n[defaults]\r\nhostfile = ./hosts\r\nhost_key_checking = Yes\r\n\r\n\r\n##### OS / ENVIRONMENT\r\nCentOS Linux release 7.2.1511 (Core) \r\n\r\n##### SUMMARY\r\nWhen using the raw module to send command to a Cisco router, \"&& Sleep 0\" gets added to the EXEC command. This causes an invalid autocommand\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\n\r\n```\r\nansible CSR -m raw -a \"show version\" -vvv\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n```\r\nUsing /home/cisco/Seminar_Playbooks/ansible.cfg as config file\r\nLoaded callback minimal of type stdout, v2.0\r\n<192.168.72.134> ESTABLISH CONNECTION FOR USER: cisco on PORT 22 TO 192.168.72.134\r\n<192.168.72.134> EXEC show version\r\nCSR | SUCCESS | rc=0 >>\r\nCisco IOS XE Software, Version 03.16.02.S - Extended Support Release\r\nCisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.5(3)S2, RELEASE SOFTWARE (fc2)\r\nTechnical Support: http://www.cisco.com/techsupport\r\n...\r\n< truncated > \r\n...\r\n```\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\n\r\n```\r\nUsing /home/cisco/Seminar_Playbooks/Cisco/CSR/ansible.cfg as config file\r\n<192.168.72.134> ESTABLISH SSH CONNECTION FOR USER: cisco\r\n<192.168.72.134> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=cisco -o ConnectTimeout=10 -o ControlPath=/home/cisco/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.72.134 'show version && sleep 0'\r\nCSR | SUCCESS | rc=0 >>\r\n\r\nLine has invalid autocommand \"show version && sleep 0\"Connection to 192.168.72.134 closed by remote host.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/229979515","html_url":"https://github.com/ansible/ansible-modules-core/issues/3757#issuecomment-229979515","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3757","id":229979515,"user":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T15:41:06Z","updated_at":"2016-07-01T15:41:06Z","body":"closing via merged #16085"}}
{"actor":{"display_login":"bcoca"}}