When does an Ansible handler run?
- After every task in the play
- Only before the first task
- When a task notifies it
- Only if the play has failed
Handlers run at the end of the play, and only if a changed task notified them, e.g. to restart a service.
Play DevOps ▸