{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/13862","labels_url":"https://api.github.com/repos/ansible/ansible/issues/13862/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/13862/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/13862/events","html_url":"https://github.com/ansible/ansible/issues/13862","id":126506795,"number":13862,"title":"ad-hoc mode commands incorrectly parses arguments","user":{"login":"timofei-durakov","id":1677153,"avatar_url":"https://avatars.githubusercontent.com/u/1677153?v=3","gravatar_id":"","url":"https://api.github.com/users/timofei-durakov","html_url":"https://github.com/timofei-durakov","followers_url":"https://api.github.com/users/timofei-durakov/followers","following_url":"https://api.github.com/users/timofei-durakov/following{/other_user}","gists_url":"https://api.github.com/users/timofei-durakov/gists{/gist_id}","starred_url":"https://api.github.com/users/timofei-durakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timofei-durakov/subscriptions","organizations_url":"https://api.github.com/users/timofei-durakov/orgs","repos_url":"https://api.github.com/users/timofei-durakov/repos","events_url":"https://api.github.com/users/timofei-durakov/events{/privacy}","received_events_url":"https://api.github.com/users/timofei-durakov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ansible/ansible/milestones/5","html_url":"https://github.com/ansible/ansible/milestones/stable-2.0","labels_url":"https://api.github.com/repos/ansible/ansible/milestones/5/labels","id":975800,"number":5,"title":"stable-2.0","description":"","creator":{"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},"open_issues":107,"closed_issues":734,"state":"open","created_at":"2015-02-11T19:43:06Z","updated_at":"2016-01-29T21:55:37Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-01-13T20:33:30Z","updated_at":"2016-01-29T22:25:14Z","closed_at":null,"body":"##### Issue Type:\r\n\r\nBug Report\r\n\r\n##### Ansible Version:\r\n\r\nansible 2.0.0.1\r\n\r\n##### Ansible Configuration:\r\n\r\nno external changes\r\n\r\n##### Environment:\r\n\r\nUbuntu 14.04\r\n\r\n##### Summary:\r\n\r\nAnsible incorrectly parses arumments in ad-hoc mode\r\n\r\n##### Steps To Reproduce:\r\n\r\nexample: \r\nansible all --sudo -f 5 -i inventory -m shell -a \"mount -t nfs4 -o proto=tcp,port=2049 192.168.102.11:/ /opt/stack/data/nova/instances/\"\r\n\r\n##### Expected Results:\r\n\r\ncommand succeed\r\n\r\n##### Actual Results:\r\n\r\n192.168.102.12 | FAILED | rc=0 >>\r\nunsupported parameter for module: proto\r\n\r\nthere is a workaround by escaping '=' with '\\'  "},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/176997275","html_url":"https://github.com/ansible/ansible/issues/13862#issuecomment-176997275","issue_url":"https://api.github.com/repos/ansible/ansible/issues/13862","id":176997275,"user":{"login":"laupow","id":6674176,"avatar_url":"https://avatars.githubusercontent.com/u/6674176?v=3","gravatar_id":"","url":"https://api.github.com/users/laupow","html_url":"https://github.com/laupow","followers_url":"https://api.github.com/users/laupow/followers","following_url":"https://api.github.com/users/laupow/following{/other_user}","gists_url":"https://api.github.com/users/laupow/gists{/gist_id}","starred_url":"https://api.github.com/users/laupow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laupow/subscriptions","organizations_url":"https://api.github.com/users/laupow/orgs","repos_url":"https://api.github.com/users/laupow/repos","events_url":"https://api.github.com/users/laupow/events{/privacy}","received_events_url":"https://api.github.com/users/laupow/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T22:25:13Z","updated_at":"2016-01-29T22:25:13Z","body":"Thanks @bcoca. \r\n\r\nI couldn't find `--become` mentioned in `man ansible` or on https://docs.ansible.com/ansible/intro_adhoc.html. I figured the other args implied that functionality when provided. \r\n\r\nMaybe the docs need an update? However it appears I may not be best suited to make changes."}}