thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Intermediate

Ansible Handler

An Ansible task that runs only when notified by another task that reported a change, typically to restart services.

Definition

Handlers run once at the end of the play (or when flushed) even if notified multiple times.

Example

A template task notifies 'restart nginx' only if nginx.conf changed.

Exam tip

Handlers run only on change and only once per play by default.

Related terms