Open banz-ghb opened 6 years ago
This issue is a request. I want AWX (or Ansible Tower) API extention. It will complement the missing functions of awx workflow reasonable.
Swagger documents are as follows.
https://docs.ansible.com/ansible-tower/latest/html/towerapi/api_ref.html
Monitor tools (prometheus, zabbix etc) invokes a job template, which means a playbook, through webhook consumer endpoint.
POST /api/v2/job_templates/{id}/launch/ Launch a Job Template
With the extra_vars, it is possible to change the behavior of the job template (such as target nodes and options)
In accordance with the job execution result, subsequent processing such as notification and recovery are executed.
GET /api/v2/jobs/{id}/ Retrieve a Job
I see that AWX has a OpenAPI specification that can be built, perhaps the easiest way would be to build that specification and hand it over to the custom API client connector functionality.
This issue is a request. I want AWX (or Ansible Tower) API extention. It will complement the missing functions of awx workflow reasonable.
Swagger documents are as follows.
https://docs.ansible.com/ansible-tower/latest/html/towerapi/api_ref.html
usecase1
Monitor tools (prometheus, zabbix etc) invokes a job template, which means a playbook, through webhook consumer endpoint.
With the extra_vars, it is possible to change the behavior of the job template (such as target nodes and options)
usecase2
In accordance with the job execution result, subsequent processing such as notification and recovery are executed.