diff --git a/windows/setup.ps1 b/windows/setup.ps1 index 9b77487c421..585be6317e0 100644 --- a/windows/setup.ps1 +++ b/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()