From 36d0bac0a33b6dc58e6d6efaebe657073ab3c9f4 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 9 Jun 2016 00:52:22 +0200 Subject: [PATCH] Retain an important note regarding Win32_PhysicalMemory on virtual platforms --- lib/ansible/modules/windows/setup.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/windows/setup.ps1 b/lib/ansible/modules/windows/setup.ps1 index 49d37453d6f..40c5484b122 100644 --- a/lib/ansible/modules/windows/setup.ps1 +++ b/lib/ansible/modules/windows/setup.ps1 @@ -152,6 +152,7 @@ Set-Attr $date "weeknumber" (Get-Date -UFormat "%W") Set-Attr $date "year" $datetime.ToString("yyyy") Set-Attr $result.ansible_facts "ansible_date_time" $date +# Win32_PhysicalMemory is empty on some virtual platforms Set-Attr $result.ansible_facts "ansible_memtotal_mb" ([math]::round($win32_cs.TotalPhysicalMemory / 1024 / 1024)) Set-Attr $result.ansible_facts "ansible_swaptotal_mb" ([math]::round($win32_os.TotalSwapSpaceSize / 1024 / 1024))