{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/7642","labels_url":"https://api.github.com/repos/ansible/ansible/issues/7642/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/7642/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/7642/events","html_url":"https://github.com/ansible/ansible/pull/7642","id":34790821,"number":7642,"title":"Option to hide commands from stderr and ansible log","user":{"login":"rameshraithatha","id":1427426,"avatar_url":"https://avatars.githubusercontent.com/u/1427426?v=3","gravatar_id":"","url":"https://api.github.com/users/rameshraithatha","html_url":"https://github.com/rameshraithatha","followers_url":"https://api.github.com/users/rameshraithatha/followers","following_url":"https://api.github.com/users/rameshraithatha/following{/other_user}","gists_url":"https://api.github.com/users/rameshraithatha/gists{/gist_id}","starred_url":"https://api.github.com/users/rameshraithatha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rameshraithatha/subscriptions","organizations_url":"https://api.github.com/users/rameshraithatha/orgs","repos_url":"https://api.github.com/users/rameshraithatha/repos","events_url":"https://api.github.com/users/rameshraithatha/events{/privacy}","received_events_url":"https://api.github.com/users/rameshraithatha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/feature_pull_request","name":"feature_pull_request","color":"009800"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P3","name":"P3","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-06-02T16:49:08Z","updated_at":"2015-07-20T12:20:20Z","closed_at":"2015-07-20T12:20:19Z","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/7642","html_url":"https://github.com/ansible/ansible/pull/7642","diff_url":"https://github.com/ansible/ansible/pull/7642.diff","patch_url":"https://github.com/ansible/ansible/pull/7642.patch"},"body":"**Syntax:** \r\n*hide: true*\r\n\r\n**Description:** \r\nHide commands from stderr and ansible log. This will hide command arguments as well when used in verbose mode. This option would be helpful when you are running some command which requires passwords and you don't wont ansible to display it on your screen or ansible log.\r\n\r\n**NOTE:**\r\n Ansible already has a way to hide passwords, but that works only when you pass something like \"password=mypass\". It will scan your command and search for a 'password' string, which might not be the case for all use cases.\r\n\r\n**Example: ** \r\n\r\n    - name: Display facts\r\n      command: facter -p\r\n      hide: true\r\n\r\n**Output:**\r\n\r\n    <HOST> REMOTE_MODULE command ARGUMENTS_HIDDEN\r\n    changed: [HOST] => {\"changed\": true, \"cmd\": \"COMMAND_HIDDEN\", \"delta\": \"0:00:01.433558\", \"end\": \"2014-06-02 16:26:58.353121\", \"rc\": 0, \"start\": \"2014-06-02 16:26:56.919563\", \"stderr\": \"\", \"stdout\": \"\"}\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/122866894","html_url":"https://github.com/ansible/ansible/pull/7642#issuecomment-122866894","issue_url":"https://api.github.com/repos/ansible/ansible/issues/7642","id":122866894,"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-07-20T12:20:19Z","updated_at":"2015-07-20T12:20:19Z","body":"@amenonsen I agree, this PR is no longer applicable. We're going to be tweaking no_log a bit more in the near future as well, so we'll close this PR now.\r\n\r\n@rameshraithatha thanks for the submission, and our apologies that it has been superseded by current work."}}