mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
15 lines
240 B
PowerShell
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;
|