summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authornitzmahone <mdavis@ansible.com>2016-06-14 11:32:52 -0700
committernitzmahone <mdavis@ansible.com>2016-06-14 11:33:00 -0700
commite992cfd47324b0acaee2d3df01a6da10189ee0d9 (patch)
tree909130660a143b5fa6ae6c1f33666b89ab474c52 /windows
parent0802569af99ab08ccacd149e06cffe7f8dac872a (diff)
downloadansible-modules-core-e992cfd47324b0acaee2d3df01a6da10189ee0d9.tar.gz
rename ansible_winrm_certificate_expires fact to avoid collision with connection vars
Diffstat (limited to 'windows')
-rw-r--r--windows/setup.ps13
1 files changed, 2 insertions, 1 deletions
diff --git a/windows/setup.ps1 b/windows/setup.ps1
index 1f1c4a3b..0d6dcf08 100644
--- a/windows/setup.ps1
+++ b/windows/setup.ps1
@@ -150,7 +150,8 @@ $winrm_cert_expiry = Get-ChildItem -Path Cert:\LocalMachine\My | where Thumbprin
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