I didn't test the PS module but I checked the sources looking for help in order to see how the REST API works and I found out a possible issue:
|
if($CLIArguments) |
|
{ |
|
$Body.Add("cli_arguments", $CLIArguments) |
|
} |
"cli_arguments" does not work for me (at least in Semaphore v2.9.56). Changed to "arguments" works perfectly. In fact, this is how the Semaphore UI send the payload when starting a job
arguments: "[\"--extra-vars\", \"serverList=server1.mydomain.com\"]" environment: "{}" project_id: 1 template_id: 15
I didn't test the PS module but I checked the sources looking for help in order to see how the REST API works and I found out a possible issue:
PSSemaphore/Source/Public/Start-SemaphoreProjectTask.ps1
Lines 75 to 78 in 8bdce61
"cli_arguments" does not work for me (at least in Semaphore v2.9.56). Changed to "arguments" works perfectly. In fact, this is how the Semaphore UI send the payload when starting a job
arguments: "[\"--extra-vars\", \"serverList=server1.mydomain.com\"]" environment: "{}" project_id: 1 template_id: 15