getting ansible results with the job api.

My question is simple : how a playbook can have results that can be directly available in the api (jobs)
Something like a coupe myResult1, myResult1Value myResult2, myResult2Value
Example : you have to reserve an IP adress, ansible do it and return the reserved value in a stored result, available with api.

We have a private cloud which deliver services to customers, every service is a sequence of tasks, but tasks can be launched on an Orchestrator, or Ansible or other platform.
We need so to get particular results when needed.

getting IP, result is ip
getting hostname , result is hostname
create dns entry, using the ip and the hostname, no result, only succes when done

with the orchrestrator, the notion of result (or output field) is very clear.
I’m new with Ansible and it seems to be oriented only on stdout of a task so you have to make a post processing outside of the task, or register vars and can you get api in the api ?

If someone which is confident with the subject can light my fire, it’s a basis on how we will implement the interface between ansible and our portal.

Regards.