Use job output in a downstream step

When either Ansible Automation Platform execution step type completes, it produces an output object that you can pass to a downstream step.

Before you begin

  • You have access to the workflow builder.
  • The workflow contains an Ansible Automation Platform execution step that has run at least once.

Procedure

  1. Navigate to the Workflows page and select the workflow you want to modify.
  2. Select the downstream step.
  3. Select Schema in the Input pane.
  4. Select the Ansible Automation Platform step.
  5. Drag the needed output field into the target configuration field in the Parameters pane. For example, to pass the job_id to a notification step, reference ${execute_job_id.job_id}.

    Job template step output fields:

    Output field Description
    status Step completion status
    job_id The Ansible Automation Platform job ID
    job_status The Ansible Automation Platform job status string (for example,successful,failed,error,canceled)
    job_url URL to view the job in the Ansible Automation Platform interface
    artifacts Any artifacts set by playbooks usingset_stats
    created ISO 8601 timestamp when the job was created
    started ISO 8601 timestamp when the job started running
    finished ISO 8601 timestamp when the job completed

    Workflow template step output fields:

    Output field Description
    status Step completion status
    workflow_job_id The Ansible Automation Platform workflow job ID
    workflow_job_status The Ansible Automation Platform workflow job status string (for example,successful,failed,error,canceled)
    workflow_job_url URL to view the workflow job in the Ansible Automation Platform interface
    artifacts Any artifacts set by playbooks within the workflow usingset_stats
    created ISO 8601 timestamp when the workflow job was created
    started ISO 8601 timestamp when the workflow job started running
    finished ISO 8601 timestamp when the workflow job completed