diff options
author | Matt Davis <nitzmahone@users.noreply.github.com> | 2016-06-06 14:43:56 -0700 |
---|---|---|
committer | Matt Davis <nitzmahone@users.noreply.github.com> | 2016-06-06 14:43:56 -0700 |
commit | a8072f9ef0d0aec054b9fd881c7dbae176cd3e58 (patch) | |
tree | 3a9860b25d5e95b86a22749325a57664ca0e5ac5 | |
parent | 91e9223a763bf5aa6515f02e377b38c7b5be2072 (diff) | |
parent | 033dc54d31a8c1733f5954242eac0518f946142c (diff) | |
download | ansible-modules-core-a8072f9ef0d0aec054b9fd881c7dbae176cd3e58.tar.gz |
Merge pull request #3879 from trondhindenes/win_fact_reboot_pending
Return reboot pending as true/false
-rw-r--r-- | windows/setup.ps1 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/windows/setup.ps1 b/windows/setup.ps1 index 63e5597d..1f1c4a3b 100644 --- a/windows/setup.ps1 +++ b/windows/setup.ps1 @@ -153,6 +153,9 @@ if ($winrm_cert_expiry) Set-Attr $result.ansible_facts "ansible_winrm_certificate_expires" $winrm_cert_expiry.NotAfter.ToString("yyyy-MM-dd HH:mm:ss") } +$PendingReboot = Get-PendingRebootStatus +Set-Attr $result.ansible_facts "ansible_reboot_pending" $PendingReboot + # See if Facter is on the System Path Try { $facter_exe = Get-Command facter -ErrorAction Stop |