diff --git a/library/windows/setup.ps1 b/library/windows/setup.ps1 index 9b77487c42..585be6317e 100644 --- a/library/windows/setup.ps1 +++ b/library/windows/setup.ps1 @@ -49,7 +49,7 @@ $osversion = [Environment]::OSVersion Set-Attr $result.ansible_facts "ansible_hostname" $env:COMPUTERNAME; Set-Attr $result.ansible_facts "ansible_fqdn" "$([System.Net.Dns]::GetHostByName((hostname)).HostName)" -Set-Attr $result.ansible_facts "ansible_system" $osversion.Platform +Set-Attr $result.ansible_facts "ansible_system" $osversion.Platform.ToString() Set-Attr $result.ansible_facts "ansible_os_family" "Windows" Set-Attr $result.ansible_facts "ansible_distribution" $osversion.VersionString Set-Attr $result.ansible_facts "ansible_distribution_version" $osversion.Version.ToString()