Return reboot pending as true/false
This commit is contained in:
parent
be6ce922a6
commit
7747be71b4
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
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
|
# See if Facter is on the System Path
|
||||||
Try {
|
Try {
|
||||||
$facter_exe = Get-Command facter -ErrorAction Stop
|
$facter_exe = Get-Command facter -ErrorAction Stop
|
||||||
|
|
Loading…
Reference in a new issue