How To Define and Use Handlers in Ansible Playbooks
In a nutshell, handlers are special tasks that only get executed when triggered via the notify directive. Handlers are executed at the end of the play, once all tasks are finished. In Ansible, handlers are typically used to start, reload, restart, and stop services. In this guide, learn more about how to define and use handlers in Ansible playbooks.