Skip to content

Commit

Permalink
Update win_reboot.py
Browse files Browse the repository at this point in the history
The included example for testing if the rebooted system is ready does not work.  Removing the exit from the command fixes this.
  • Loading branch information
p3ck authored Dec 4, 2024
1 parent 894cf1d commit 39c1ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/win_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
# Or you can make win_reboot validate exactly what you need to work before running the next task
- name: Validate that the netlogon service has started, before running the next task
ansible.windows.win_reboot:
test_command: 'exit (Get-Service -Name Netlogon).Status -ne "Running"'
test_command: '(Get-Service -Name Netlogon).Status -ne "Running"'
'''

RETURN = r'''
Expand Down

0 comments on commit 39c1ae7

Please sign in to comment.