{"action":"created","comment":{"url":"https://api.github.com/repos/ansible/ansible/pulls/comments/96770296","pull_request_review_id":17362441,"id":96770296,"diff_hunk":"@@ -0,0 +1,130 @@\n+#!powershell\n+# This file is part of Ansible\n+#\n+# Copyright 2017, Dag Wieers (@dagwieers) <dag@wieers.com>\n+#\n+# Ansible is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# Ansible is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with Ansible.  If not, see <http://www.gnu.org/licenses/>.\n+\n+# WANT_JSON\n+# POWERSHELL_COMMON\n+\n+# See also: https://technet.microsoft.com/en-us/sysinternals/pxexec.aspx","path":"lib/ansible/modules/windows/win_psexec.ps1","position":22,"original_position":22,"commit_id":"0378836a206562e2d65642b7a7b370d468dbcf07","original_commit_id":"0378836a206562e2d65642b7a7b370d468dbcf07","user":{"login":"dagwieers","id":388198,"avatar_url":"https://avatars.githubusercontent.com/u/388198?v=3","gravatar_id":"","url":"https://api.github.com/users/dagwieers","html_url":"https://github.com/dagwieers","followers_url":"https://api.github.com/users/dagwieers/followers","following_url":"https://api.github.com/users/dagwieers/following{/other_user}","gists_url":"https://api.github.com/users/dagwieers/gists{/gist_id}","starred_url":"https://api.github.com/users/dagwieers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagwieers/subscriptions","organizations_url":"https://api.github.com/users/dagwieers/orgs","repos_url":"https://api.github.com/users/dagwieers/repos","events_url":"https://api.github.com/users/dagwieers/events{/privacy}","received_events_url":"https://api.github.com/users/dagwieers/received_events","type":"User","site_admin":false},"body":"Yup, I wanted to fix it once as well ;-)","created_at":"2017-01-19T00:47:43Z","updated_at":"2017-01-19T00:47:43Z","html_url":"https://github.com/ansible/ansible/pull/20141#discussion_r96770296","pull_request_url":"https://api.github.com/repos/ansible/ansible/pulls/20141","_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments/96770296"},"html":{"href":"https://github.com/ansible/ansible/pull/20141#discussion_r96770296"},"pull_request":{"href":"https://api.github.com/repos/ansible/ansible/pulls/20141"}}},"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/20141","id":101095552,"html_url":"https://github.com/ansible/ansible/pull/20141","diff_url":"https://github.com/ansible/ansible/pull/20141.diff","patch_url":"https://github.com/ansible/ansible/pull/20141.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/20141","number":20141,"state":"open","locked":false,"title":"win_psexec: execute cmds on remote systems as any user","user":{"login":"dagwieers","id":388198,"avatar_url":"https://avatars.githubusercontent.com/u/388198?v=3","gravatar_id":"","url":"https://api.github.com/users/dagwieers","html_url":"https://github.com/dagwieers","followers_url":"https://api.github.com/users/dagwieers/followers","following_url":"https://api.github.com/users/dagwieers/following{/other_user}","gists_url":"https://api.github.com/users/dagwieers/gists{/gist_id}","starred_url":"https://api.github.com/users/dagwieers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagwieers/subscriptions","organizations_url":"https://api.github.com/users/dagwieers/orgs","repos_url":"https://api.github.com/users/dagwieers/repos","events_url":"https://api.github.com/users/dagwieers/events{/privacy}","received_events_url":"https://api.github.com/users/dagwieers/received_events","type":"User","site_admin":false},"body":"##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - New Module Pull Request\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the module/plugin/module/task -->\r\nwin_psexec\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\nv2.3\r\n\r\n##### SUMMARY\r\n<!--- Describe the change, including rationale and design decisions -->\r\n\r\n<!---\r\nIf you are fixing an existing issue, please include \"Fixes #nnn\" in your\r\ncommit message and your description; but you should still explain what\r\nthe change does.\r\n-->\r\nThe psexec tool is quite popular among Windows admins for automating tasks between systems. This module makes the tool available so that you can connect to remote servers with elevated privileges.\r\n\r\nI wasn't sure if we want to have this module. If this is acceptable, I will also add the documentation + examples.\r\n\r\n```yaml\r\n- win_psexec:\r\n    command: whoami.exe\r\n    hostnames: [ remote_system ]\r\n    username: DOMAIN\\user\r\n    password: password\r\n    chdir: C:\\Windows\\Temp\\\r\n    priority: high\r\n```","created_at":"2017-01-11T16:06:26Z","updated_at":"2017-01-19T00:47:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b9000608c1e1094c4dae040bb7933146c2dcd29","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/20141/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/20141/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/20141/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/0378836a206562e2d65642b7a7b370d468dbcf07","head":{"label":"dagwieers:win_psexec","ref":"win_psexec","sha":"0378836a206562e2d65642b7a7b370d468dbcf07","user":{"login":"dagwieers","id":388198,"avatar_url":"https://avatars.githubusercontent.com/u/388198?v=3","gravatar_id":"","url":"https://api.github.com/users/dagwieers","html_url":"https://github.com/dagwieers","followers_url":"https://api.github.com/users/dagwieers/followers","following_url":"https://api.github.com/users/dagwieers/following{/other_user}","gists_url":"https://api.github.com/users/dagwieers/gists{/gist_id}","starred_url":"https://api.github.com/users/dagwieers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagwieers/subscriptions","organizations_url":"https://api.github.com/users/dagwieers/orgs","repos_url":"https://api.github.com/users/dagwieers/repos","events_url":"https://api.github.com/users/dagwieers/events{/privacy}","received_events_url":"https://api.github.com/users/dagwieers/received_events","type":"User","site_admin":false},"repo":{"id":3764960,"name":"ansible","full_name":"dagwieers/ansible","owner":{"login":"dagwieers","id":388198,"avatar_url":"https://avatars.githubusercontent.com/u/388198?v=3","gravatar_id":"","url":"https://api.github.com/users/dagwieers","html_url":"https://github.com/dagwieers","followers_url":"https://api.github.com/users/dagwieers/followers","following_url":"https://api.github.com/users/dagwieers/following{/other_user}","gists_url":"https://api.github.com/users/dagwieers/gists{/gist_id}","starred_url":"https://api.github.com/users/dagwieers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagwieers/subscriptions","organizations_url":"https://api.github.com/users/dagwieers/orgs","repos_url":"https://api.github.com/users/dagwieers/repos","events_url":"https://api.github.com/users/dagwieers/events{/privacy}","received_events_url":"https://api.github.com/users/dagwieers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dagwieers/ansible","description":"Model-driven configuration management, multi-node deployment, and remote task execution system. Uses SSH by default, so there is no special software has to be installed on the nodes you manage. Ansible can be extended in any language. Note: The default branch is the development branch, if you need a stable version, see the release-XX branches, tags, or downloads.","fork":true,"url":"https://api.github.com/repos/dagwieers/ansible","forks_url":"https://api.github.com/repos/dagwieers/ansible/forks","keys_url":"https://api.github.com/repos/dagwieers/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dagwieers/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dagwieers/ansible/teams","hooks_url":"https://api.github.com/repos/dagwieers/ansible/hooks","issue_events_url":"https://api.github.com/repos/dagwieers/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/dagwieers/ansible/events","assignees_url":"https://api.github.com/repos/dagwieers/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/dagwieers/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/dagwieers/ansible/tags","blobs_url":"https://api.github.com/repos/dagwieers/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dagwieers/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dagwieers/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/dagwieers/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dagwieers/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/dagwieers/ansible/languages","stargazers_url":"https://api.github.com/repos/dagwieers/ansible/stargazers","contributors_url":"https://api.github.com/repos/dagwieers/ansible/contributors","subscribers_url":"https://api.github.com/repos/dagwieers/ansible/subscribers","subscription_url":"https://api.github.com/repos/dagwieers/ansible/subscription","commits_url":"https://api.github.com/repos/dagwieers/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/dagwieers/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/dagwieers/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/dagwieers/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/dagwieers/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/dagwieers/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dagwieers/ansible/merges","archive_url":"https://api.github.com/repos/dagwieers/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dagwieers/ansible/downloads","issues_url":"https://api.github.com/repos/dagwieers/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/dagwieers/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/dagwieers/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/dagwieers/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dagwieers/ansible/labels{/name}","releases_url":"https://api.github.com/repos/dagwieers/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/dagwieers/ansible/deployments","created_at":"2012-03-19T15:04:07Z","updated_at":"2016-12-12T13:59:41Z","pushed_at":"2017-01-18T14:49:45Z","git_url":"git://github.com/dagwieers/ansible.git","ssh_url":"git@github.com:dagwieers/ansible.git","clone_url":"https://github.com/dagwieers/ansible.git","svn_url":"https://github.com/dagwieers/ansible","homepage":"http://ansible.cc","size":53913,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"825456f27983057e82a88cef037912ed72ba27c5","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":3638964,"name":"ansible","full_name":"ansible/ansible","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":false,"url":"https://api.github.com/repos/ansible/ansible","forks_url":"https://api.github.com/repos/ansible/ansible/forks","keys_url":"https://api.github.com/repos/ansible/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible/teams","hooks_url":"https://api.github.com/repos/ansible/ansible/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible/events","assignees_url":"https://api.github.com/repos/ansible/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible/tags","blobs_url":"https://api.github.com/repos/ansible/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible/subscription","commits_url":"https://api.github.com/repos/ansible/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible/merges","archive_url":"https://api.github.com/repos/ansible/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible/downloads","issues_url":"https://api.github.com/repos/ansible/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible/deployments","created_at":"2012-03-06T14:58:02Z","updated_at":"2017-01-18T20:36:15Z","pushed_at":"2017-01-19T00:31:35Z","git_url":"git://github.com/ansible/ansible.git","ssh_url":"git@github.com:ansible/ansible.git","clone_url":"https://github.com/ansible/ansible.git","svn_url":"https://github.com/ansible/ansible","homepage":"http://ansible.com/","size":63822,"stargazers_count":20864,"watchers_count":20864,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6583,"mirror_url":null,"open_issues_count":2211,"forks":6583,"open_issues":2211,"watchers":20864,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/20141"},"html":{"href":"https://github.com/ansible/ansible/pull/20141"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/20141"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/20141/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/20141/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/20141/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/0378836a206562e2d65642b7a7b370d468dbcf07"}}}}
{"actor":{"display_login":"dagwieers"}}