{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/48867","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/48867/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/48867/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/48867/events","html_url":"https://github.com/ansible/ansible/issues/48867","id":382142573,"node_id":"MDU6SXNzdWUzODIxNDI1NzM=","number":48867,"title":"win_reboot unable to restart Windows server","user":{"login":"dragan1979","id":32413042,"node_id":"MDQ6VXNlcjMyNDEzMDQy","avatar_url":"https://avatars1.githubusercontent.com/u/32413042?v=4","gravatar_id":"","url":"https://api.github.com/users/dragan1979","html_url":"https://github.com/dragan1979","followers_url":"https://api.github.com/users/dragan1979/followers","following_url":"https://api.github.com/users/dragan1979/following{/other_user}","gists_url":"https://api.github.com/users/dragan1979/gists{/gist_id}","starred_url":"https://api.github.com/users/dragan1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragan1979/subscriptions","organizations_url":"https://api.github.com/users/dragan1979/orgs","repos_url":"https://api.github.com/users/dragan1979/repos","events_url":"https://api.github.com/users/dragan1979/events{/privacy}","received_events_url":"https://api.github.com/users/dragan1979/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-19T10:13:13Z","updated_at":"2018-11-19T10:13:13Z","closed_at":null,"author_association":"NONE","body":"<!--- Verify first that your issue is not already reported on GitHub -->\r\n<!--- Also test if the latest release and devel branch are affected too -->\r\n<!--- Complete *all* sections as described, this form is processed automatically -->\r\n\r\n##### SUMMARY\r\nUnable to reboot windows server\r\n##### ISSUE TYPE\r\n- Bug Report\r\n\r\n##### COMPONENT NAME\r\nwin_reboot\r\n\r\n##### ANSIBLE VERSION\r\n \r\n `ansible 2.7.1`\r\n\r\n \r\n\r\n \r\n\r\n##### OS / ENVIRONMENT\r\nCentOS 7\r\n\r\n##### STEPS TO REPRODUCE\r\n \r\n\r\n\r\n`- name: install first domain controller\r\n  hosts: winserver\r\n  gather_facts: yes\r\n  tasks:\r\n   - name: install ad\r\n     win_feature: >\r\n          name=AD-Domain-Services\r\n          include_management_tools=yes\r\n          include_sub_features=yes\r\n          state=present\r\n     register: result\r\n   - name: install domain\r\n     win_domain: >\r\n        dns_domain_name=ad.contoso.com\r\n        safe_mode_password=Passw\r\n     register: ad_result\r\n   - name: reboot server\r\n     win_reboot:\r\n      msg: \"Joining domain. Rebooting...\"\r\n     when: ad_result.reboot_required `\r\n\r\n\r\n\r\nI'm getting this error when need to reboot server:\r\n\r\n ` fatal: [winserver]: FAILED! => {\"changed\": false, \"module_stderr\": \"Exception calling \\\"Run\\\" with \\\"1\\\" argument(s): \\\"Exception calling \\\"Invoke\\\" with \\\"0\\\" argument(s): \\\"The running command \\r\\nstopped because the preference variable \\\"ErrorActionPreference\\\" or common parameter is set to Stop: Role change is in \\r\\nprogress or this computer needs to be restarted.\\r\\n\\\"\\\"\\r\\nAt line:65 char:5\\r\\n+     $output = $entrypoint.Run($payload)\\r\\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\r\\n    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException\\r\\n    + FullyQualifiedErrorId : ScriptMethodRuntimeException\\r\\n \\r\\n\", \"module_stdout\": \"\", \"msg\": \"MODULE FAILURE\\nSee stdout/stderr for the exact error\", \"rc\": 1}` \r\n\r\n\r\n\r\n\r\n "}}
{"actor":{"display_login":"dragan1979"}}