1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/library/windows/ping.ps1

15 lines
240 B
PowerShell

#!powershell
# WANT_JSON
# POWERSHELL_COMMON
$params = Parse-Args $args;
$data = 'pong';
If ($params.data.GetType)
{
$data = $params.data;
}
$result = New-Object psobject;
Set-Attr $result "ping" $data;
echo $result | ConvertTo-Json;