Defining when tasks change
You can control when handlers are notified about task changes using thechanged_whenkeyword.
In the following example, the handler restarts the service each time the configuration file is copied:
SeeDefining “changed”for more aboutchanged_when.