Trigger automation with webhooks
Use webhooks to run specified commands between applications over the web. Automation controller currently provides webhook integration with GitHub and GitLab.
Set up a webhook using GitHub or GitLab, then view the payload output.
The webhook post-status-back functionality for GitHub and GitLab is designed to work only under certain CI events. Receiving another kind of event results in messages such as the following in the service log:
awx.main.models.mixins Webhook event did not have a status API endpoint associated, skipping.
Set up a GitHub webhook to trigger automation jobs Copy linkLink copied!
Automation controller has the ability to run jobs based on a triggered webhook event coming in.
About this task Copy linkLink copied!
Job status information (pending, error, success) can be sent back only for pull request events. If you do not need automation controller to post job statuses back to the webhook service, go directly to step 3.
Procedure Copy linkLink copied!
Set up a GitLab webhook Copy linkLink copied!
Automation controller has the ability to run jobs based on a triggered webhook event coming in. Job status information (pending, error, success) can be sent back only for pull request events.
About this task Copy linkLink copied!
If automation controller is not required to post job statuses back to the webhook service, go directly to step 3.
Procedure Copy linkLink copied!
View the payload output Copy linkLink copied!
When a webhook is triggered in automation controller, the payload data is sent to the specified URL.
About this task Copy linkLink copied!
You can view the entire payload exposed as an extra variable.
Procedure Copy linkLink copied!
- From the navigation panel, select .
- Select the job template with the webhook enabled.
- Select the Details tab.
- In the Extra Variables field, view the payload output from the
awx_webhook_payloadvariable, as shown in the following example:





