how to return additional variables as a part of job status get request

Hi,

I am using ansible AWX for issuing REST calls for calling playbook. Playbook connects to downstream servers and provisions storage using underlying storage API’s and registers o/p of rest call. My requirement is to get back a o/p of rest call as a part of job status call, however i am not able to do that as of now. Here is test playbook.

Hi Team,

Any advice on this ?

Regards,
Punit

Hi Punit,

You can try this below API query.
api/v2/jobs/55/job_events/?task=Your_task_name.

In your code you have to display the results of that particular variable in the task " Your_task_name "
and the API query will print the results in json format, then you have to dig in a bit to see your custom result.

Let me know if you have any questions.

Thanks and Regards
Mani Mohan

Thanks Mani. That works.

Regards,
Punit