win_reboot: fix minor issues with the latest refactor (#44740)

* win_reboot: fix minor issues with the latest refactor

* Always return elapsed with win_reboot
This commit is contained in:
Jordan Borean
2018-08-29 07:25:37 +10:00
committed by Sam Doran
parent 7d51b2a6d2
commit 0c3216c565
3 changed files with 21 additions and 11 deletions

View File

@@ -66,7 +66,7 @@
ansible_password: '{{standard_pass}}'
ansible_winrm_transport: ntlm
register: fail_shutdown
failed_when: fail_shutdown.msg != "Shutdown command failed, error text was 'Access is denied.(5)\n'"
failed_when: "fail_shutdown.msg != 'Shutdown command failed, error was: Access is denied.(5)'"
always:
- name: set the original SDDL to the WinRM listener