andThenYouDie

Automation, IT and more.

30 Jul 2019

Launch AWX / Tower Job by Name

You whant to run a job with a more “friendly” way than using an ID ? It’s easy, AWX leave you the oportunity to do that

just use this URL: http://awx/api/v2/job_templates/[JOB_NAME]/launch/ and replace [JOB_NAME] by the name of the job in AWX

With Curl :

curl --request POST \
  --url http://awx/api/v2/job_templates/[JOB_NAME]/launch/ \
  --header 'authorization: Basic YWRtaW46YWRtaW4=' \
  --header 'content-type: application/json' \
  --data '{
  "extra_vars": {
    "extra_var_1": "AndThen",
    "extra_var_2": "YouDie",
  }
}
'