Moved the check_command block to be before the vars block, since the vars block for a service apply will usually be setting variables for the check_command.