{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/33","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/33/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/33/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/33","id":44518758,"number":33,"title":"Added win_hostname module","user":{"login":"NicCOConnor","id":5148929,"avatar_url":"https://avatars.githubusercontent.com/u/5148929?v=3","gravatar_id":"","url":"https://api.github.com/users/NicCOConnor","html_url":"https://github.com/NicCOConnor","followers_url":"https://api.github.com/users/NicCOConnor/followers","following_url":"https://api.github.com/users/NicCOConnor/following{/other_user}","gists_url":"https://api.github.com/users/NicCOConnor/gists{/gist_id}","starred_url":"https://api.github.com/users/NicCOConnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicCOConnor/subscriptions","organizations_url":"https://api.github.com/users/NicCOConnor/orgs","repos_url":"https://api.github.com/users/NicCOConnor/repos","events_url":"https://api.github.com/users/NicCOConnor/events{/privacy}","received_events_url":"https://api.github.com/users/NicCOConnor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/needs_revision","name":"needs_revision","color":"eb6420"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/new_plugin","name":"new_plugin","color":"bfe5bf"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/P3","name":"P3","color":"fef2c0"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/windows","name":"windows","color":"777777"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-10-01T01:19:18Z","updated_at":"2015-08-30T18:16:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/33","html_url":"https://github.com/ansible/ansible-modules-extras/pull/33","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/33.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/33.patch"},"body":"win_hostname could be useful when you know the IP Address but want to change the hostname of a windows machine.  "},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/136165740","html_url":"https://github.com/ansible/ansible-modules-extras/pull/33#issuecomment-136165740","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/33","id":136165740,"user":{"login":"NicCOConnor","id":5148929,"avatar_url":"https://avatars.githubusercontent.com/u/5148929?v=3","gravatar_id":"","url":"https://api.github.com/users/NicCOConnor","html_url":"https://github.com/NicCOConnor","followers_url":"https://api.github.com/users/NicCOConnor/followers","following_url":"https://api.github.com/users/NicCOConnor/following{/other_user}","gists_url":"https://api.github.com/users/NicCOConnor/gists{/gist_id}","starred_url":"https://api.github.com/users/NicCOConnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicCOConnor/subscriptions","organizations_url":"https://api.github.com/users/NicCOConnor/orgs","repos_url":"https://api.github.com/users/NicCOConnor/repos","events_url":"https://api.github.com/users/NicCOConnor/events{/privacy}","received_events_url":"https://api.github.com/users/NicCOConnor/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T18:16:09Z","updated_at":"2015-08-30T18:16:09Z","body":"@gregdek Spent some time this weekend getting this all worked out. The Module will now change the computer, and add or remove a computer from the domain. I've also added some helper functions that closely match the python versions of required, required_if, mutually_exclusive, and required_together. These are probably better suited for the Ansible Powershell helper functions. ansible/lib/ansible/module_utils/powershell.ps1. but the module benefits from them so I'll leave them in till I can create a pull request for the helper functions. Thoughts?  \r\n\r\n"}}