handler

A task that runs only when another task notifies it and reports changed, typically to reload or restart a service.

In more detail

Handlers are declared under the handlers key of a play or in a role's handlers/main.yml and run after the play's ordinary tasks. However many tasks notify a handler, it runs once. If every notifying task reports ok, the handler does not run at all.

Related terms

Taught in

References

Certification courses