0Pricing
Ansible Academy · Lesson

Notify a Handler on Change

Wire a task to fire a handler.

Restart Only When Needed

Restarting a service on every run is wasteful and risky. A handler lets you restart it only when something actually changed.

What a Handler Is

A handler is just a task that sits idle until a regular task tells it to run. Think of it as an action waiting for a signal.

All lessons in this course

  1. Notify a Handler on Change
  2. Defining Handlers & Restart Patterns
  3. When Handlers Run & flush_handlers
  4. Listen: One Trigger, Many Handlers
← Back to Ansible Academy