diff --git a/library/windows/setup.ps1 b/library/windows/setup.ps1 index adec2d9ae0..8c1a45c82b 100644 --- a/library/windows/setup.ps1 +++ b/library/windows/setup.ps1 @@ -26,7 +26,7 @@ $result = New-Object psobject @{ }; $osversion = [Environment]::OSVersion -$memory = Get-WmiObject win32_Pysicalmemory +$memory = Get-WmiObject win32_Physicalmemory $netcfg = Get-WmiObject win32_NetworkAdapterConfiguration Set-Attr $result.ansible_facts "ansible_hostname" $env:COMPUTERNAME; diff --git a/test/integration/roles/test_win_setup/tasks/main.yml b/test/integration/roles/test_win_setup/tasks/main.yml index a62e49936f..e2685ec868 100644 --- a/test/integration/roles/test_win_setup/tasks/main.yml +++ b/test/integration/roles/test_win_setup/tasks/main.yml @@ -33,3 +33,4 @@ - "setup_result.ansible_facts.ansible_hostname" - "setup_result.ansible_facts.ansible_ip_addresses" - "setup_result.ansible_facts.ansible_system" + - "setup_result.ansible_facts.ansible_totalmem"