Skip to content

Callbacks

If the callback_url was set when making the original request, LSO will return the output of the Ansible playbook run to this URL.

Code Documentation

Once Ansible runner is finished, it will call back to the specified URL in the original request.

Parameters:

Name Type Description Default

callback

str

The callback URL that the Ansible runner should report to.

required

job_id

str

The job ID of this playbook run, used for reporting.

required

Returns:

Type Description
Callable[[Runner], None] | None

A handler method that sends one request to the callback URL.

Raises:

Type Description
CallbackFailedError

If the callback to the external system has failed.