I am trying to dynamically determine the machine SSH credential to be used by a workflow job node at runtime, via the API.
While I can determine the credential ID, I am trying to pass the Credential ID to my /workflow_job_templates/{id}/launch API call and subsequently to the resulting job template nodes.
- Is there any way to propagate the machine credential (or its ID) from a workflow job template invocation, to the ‘child’ jobs?
- Alternatively, if I passed the credential ID via extra_vars, is it possible to fetch and ‘apply’ the machine credential (via API call, based on ID) during the job node runtime?
- Would it be possible to pass down the applicable machine credentials via set_stats?