Notifying the handler simply tells ansible that it needs to restart gerrit at the end of the play if this handler has been notified at least once.  This means that the restart won't actually happen until the end of the play.