notify

The task keyword that names one or more handlers to run later if this task reports changed.

In more detail

The handler name in notify must match the handler's name exactly, including capitals. Several notifications of the same handler still produce a single run at the end of the play, so a batch of configuration edits leads to one reload rather than many.

Example

notify: Record a reload

Related terms

Taught in

References

Certification courses