|
|
@ -64,6 +64,12 @@ Set-Attr $result.ansible_facts "ansible_os_name" ($win32_os.Name.Split('|')[0]).
|
|
|
|
Set-Attr $result.ansible_facts "ansible_distribution" $osversion.VersionString
|
|
|
|
Set-Attr $result.ansible_facts "ansible_distribution" $osversion.VersionString
|
|
|
|
Set-Attr $result.ansible_facts "ansible_distribution_version" $osversion.Version.ToString()
|
|
|
|
Set-Attr $result.ansible_facts "ansible_distribution_version" $osversion.Version.ToString()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$date = New-Object psobject
|
|
|
|
|
|
|
|
Set-Attr $date "day" (Get-Date -format dd)
|
|
|
|
|
|
|
|
Set-Attr $date "hour" (Get-Date -format HH)
|
|
|
|
|
|
|
|
Set-Attr $date "iso8601" (Get-Date -format s)
|
|
|
|
|
|
|
|
Set-Attr $result.ansible_facts "ansible_date_time" $date
|
|
|
|
|
|
|
|
|
|
|
|
Set-Attr $result.ansible_facts "ansible_totalmem" $capacity
|
|
|
|
Set-Attr $result.ansible_facts "ansible_totalmem" $capacity
|
|
|
|
|
|
|
|
|
|
|
|
Set-Attr $result.ansible_facts "ansible_lastboot" $win32_os.lastbootuptime.ToString("u")
|
|
|
|
Set-Attr $result.ansible_facts "ansible_lastboot" $win32_os.lastbootuptime.ToString("u")
|
|
|
|