From 6615e618d94e79f9dfab7e8b8f02c5b52f428433 Mon Sep 17 00:00:00 2001 From: Michael Perzel Date: Mon, 12 Oct 2015 16:16:10 -0500 Subject: [PATCH] Added date, year and month attributes --- windows/setup.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windows/setup.ps1 b/windows/setup.ps1 index 938d98c23e6..0b3e2c897e3 100644 --- a/windows/setup.ps1 +++ b/windows/setup.ps1 @@ -65,6 +65,9 @@ Set-Attr $result.ansible_facts "ansible_distribution" $osversion.VersionString Set-Attr $result.ansible_facts "ansible_distribution_version" $osversion.Version.ToString() $date = New-Object psobject +Set-Attr $date "date" (Get-Date -format d) +Set-Attr $date "year" (Get-Date -format yyyy) +Set-Attr $date "month" (Get-Date -format MM) Set-Attr $date "day" (Get-Date -format dd) Set-Attr $date "hour" (Get-Date -format HH) Set-Attr $date "iso8601" (Get-Date -format s)