Boston’s Ari Graynorhas been tapped to star in CBS’ television adaptation of “Bad Teacher,’’ according to The Hollywood Reporter. Graynor will take on the role that Cameron Diaz played on the big screen in 2011. Graynor appeared in, and coproduced, last year’s film “For a Good Time, Call. . .,’’ and she costarred with Henry Winkler in a short run of the play “The Performers’’ on Broadway last fall. Graynor went to Buckingham Browne & Nichols in Cambridge.