Sobes.tech
Senior

How can you connect/trigger jobs in Ansible Tower/AWX?

sobes.tech AI

Answer from AI

In Ansible Tower/AWX, jobs can be run in several ways:

  1. Via the web interface — manually launching Job Templates.
  2. On a schedule (Schedules) — creating schedules for automatic job execution at specific times.
  3. Via API — using the REST API for programmatic job launching, which allows integration of Tower with external systems.
  4. Via Workflow Templates — running chains of jobs where one triggers the next.
  5. Via notifications (Notifications) — setting up triggers for events that launch jobs.

Example of launching a job via API (curl):

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <TOKEN>" \
https://<tower_url>/api/v2/job_templates/<job_template_id>/launch/

Thus, it is possible to flexibly integrate and automate job launches in Ansible Tower/AWX.