rename ansible_winrm_certificate_expires fact to avoid collision with connection vars
This commit is contained in:
parent
0802569af9
commit
e992cfd473
1 changed files with 2 additions and 1 deletions
|
@ -150,7 +150,8 @@ $winrm_cert_expiry = Get-ChildItem -Path Cert:\LocalMachine\My | where Thumbprin
|
||||||
|
|
||||||
if ($winrm_cert_expiry)
|
if ($winrm_cert_expiry)
|
||||||
{
|
{
|
||||||
Set-Attr $result.ansible_facts "ansible_winrm_certificate_expires" $winrm_cert_expiry.NotAfter.ToString("yyyy-MM-dd HH:mm:ss")
|
# this fact was renamed from ansible_winrm_certificate_expires due to collision with ansible_winrm_X connection var pattern
|
||||||
|
Set-Attr $result.ansible_facts "ansible_win_rm_certificate_expires" $winrm_cert_expiry.NotAfter.ToString("yyyy-MM-dd HH:mm:ss")
|
||||||
}
|
}
|
||||||
|
|
||||||
$PendingReboot = Get-PendingRebootStatus
|
$PendingReboot = Get-PendingRebootStatus
|
||||||
|
|
Loading…
Reference in a new issue