Skip to main content

Launch Job - Ansible Automation Platform

This Playbook is part of the Ansible Automation Platform Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

Generic polling playbook to launch a specific job template. Returns the job status when the job finishes running.

Dependencies#

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks#

  • GenericPolling

Integrations#

  • Ansible Automation Platform

Scripts#

This playbook does not use any scripts.

Commands#

  • ansible-tower-job-launch
  • ansible-tower-job-events-list-by-id
  • ansible-tower-job-stdout

Playbook Inputs#


NameDescriptionDefault ValueRequired
job_template_idThe job template id to launch.Required
credentials_idSelect the credentials that allows Tower to access the nodes this job will be run against (if needed).Optional
Inventory_idSelect the inventory containing the hosts you want this job to manage (if needed).Optional
extra_variablesPass extra command line variables to the playbook (if needed).Optional
show_outputPrint output from the job that is running.trueOptional
IntervalPolling frequency - how often the polling command should run (in minutes)1Optional
TimeoutHow much time (in minutes) to wait before a timeout occurs.15Optional
return_job_eventsChoose if you want to return the job's raw eventsfalseOptional

Playbook Outputs#


PathDescriptionType
AnsibleAWX.Job.idJob idunknown
AnsibleAWX.Job.statusJob statusunknown
AnsibleAWX.JobStdout.contentjob stdoutunknown
AnsibleAWX.JobEvents.stdoutStandard output of the job.unknown
AnsibleAWX.JobEvents.typeData type for this job event.unknown
AnsibleAWX.JobEvents.idDatabase ID for this job event.unknown
AnsibleAWX.JobEvents.jobJob ID.unknown
AnsibleAWX.JobEvents.hostHost ID associated with the event.unknown
AnsibleAWX.JobEvents.taskTask name.unknown
AnsibleAWX.JobEvents.start_lineStarting line number of the execution.unknown
AnsibleAWX.JobEvents.end_lineEnding line number of the execution.unknown
AnsibleAWX.JobEvents.event_dataJob event data.unknown

Playbook Image#