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.
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.