In the paper the linear-quadratic control problem is solved for infinite dimensional systems driven by fractional Brownian motion. The results are applied to controlled stochastic parabolic systems.