You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/library/windows/win_ping.ps1

16 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;