diff options
author | nitzmahone <mdavis@ansible.com> | 2016-06-14 11:32:52 -0700 |
---|---|---|
committer | nitzmahone <mdavis@ansible.com> | 2016-06-14 11:33:00 -0700 |
commit | e992cfd47324b0acaee2d3df01a6da10189ee0d9 (patch) | |
tree | 909130660a143b5fa6ae6c1f33666b89ab474c52 /windows | |
parent | 0802569af99ab08ccacd149e06cffe7f8dac872a (diff) | |
download | ansible-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.ps1 | 3 |
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 |