I have a job in Rundeck v5.2.0, that runs a PowerShell script on remote ‘NODE1’ and outputs either ‘True’ or ‘False’. I want to use “Invoke-WebRequest” to send that output to ‘NODE2’. But ‘NODE1’ doesn’t have access on ‘NODE2’. The Rundeck server does have access on ‘NODE2’ though.
So, I have to somehow save the output from ‘NODE1’ and create another step or job in Rundeck, that will take the output from ‘NODE1’ and run “Invoke-WebRequest” to send it on ‘NODE2’.
To be clear, Rundeck has to take the output from the job that was run on ‘NODE1’ and run a PowerShell script on itself, to send the output on ‘NODE2’.
How can I do this?