{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/7240","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/7240/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/7240/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/7240/events","html_url":"https://github.com/ansible/ansible/issues/7240","id":32593815,"number":7240,"title":"(Doc) Intro to Ad-Hoc Commands:  the command module *does* accept shell variables","user":{"login":"jf","id":7270,"avatar_url":"https://avatars.githubusercontent.com/u/7270?v=3","gravatar_id":"","url":"https://api.github.com/users/jf","html_url":"https://github.com/jf","followers_url":"https://api.github.com/users/jf/followers","following_url":"https://api.github.com/users/jf/following{/other_user}","gists_url":"https://api.github.com/users/jf/gists{/gist_id}","starred_url":"https://api.github.com/users/jf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jf/subscriptions","organizations_url":"https://api.github.com/users/jf/orgs","repos_url":"https://api.github.com/users/jf/repos","events_url":"https://api.github.com/users/jf/events{/privacy}","received_events_url":"https://api.github.com/users/jf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/affects_1.6","name":"affects_1.6","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible/labels/docs_report","name":"docs_report","color":"0052cc"},{"url":"https://api.github.com/repos/ansible/ansible/labels/triage","name":"triage","color":"0e8a16"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2014-05-01T04:29:11Z","updated_at":"2016-09-08T19:24:29Z","closed_at":"2016-09-08T19:24:25Z","body":"##### Issue Type:\r\n\r\nDocumentation Report\r\n\r\n##### Ansible Version:\r\n\r\nansible 1.6 (devel 40a7a306f5)\r\n\r\n##### Environment:\r\n\r\nUbuntu 12.04\r\n\r\n##### Summary:\r\n\r\nhttp://docs.ansible.com/intro_adhoc.html states:\r\n\r\n--------------------\r\nNote\r\n\r\nThe command - Executes a command on a remote node module does not support shell variables and things like piping. If we want to execute a module using a shell, use the ‘shell’ module instead. Read more about the differences on the About Modules page.\r\n\r\n------------------\r\n\r\nBut I've tried with various invocations of `ansible` with no problem:\r\n\r\n`ansible <hostname> -a 'echo $SHELL'` =>  /bin/bash\r\n\r\n`ansible <hostname> -a 'echo $HOME' --sudo -K` => /root\r\n\r\n`ansible <hostname> -a 'touch $HOME/abc'` => file is touched\r\n\r\nI wont submit a patch; I'll leave you guys to decide how to fix this, but that paragraph needs a bit of love...\r\n\r\n\r\n##### Steps To Reproduce:\r\n\r\n\r\n##### Expected Results:\r\n\r\n\r\n##### Actual Results:\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/245711109","html_url":"https://github.com/ansible/ansible/issues/7240#issuecomment-245711109","issue_url":"https://api.github.com/repos/ansible/ansible/issues/7240","id":245711109,"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":"2016-09-08T19:24:29Z","updated_at":"2016-09-08T19:24:29Z","body":"Closing This Ticket\r\n===================\r\n\r\nHi!\r\n\r\nWe believe the above commit should resolve this problem for you. This will also be included in the next release.\r\n\r\nIf you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:\r\n\r\n   * https://groups.google.com/forum/#!forum/ansible-project - for user questions, tips, and tricks\r\n   * https://groups.google.com/forum/#!forum/ansible-devel - for strategy, future planning, and questions about writing code\r\n\r\nBecause this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.\r\n\r\nThank you!"}}
{"actor":{"display_login":"jimi-c"}}