"Into the Woods" actor and TV host James Corden will voice the titular character in the film, based on children's author and illustrator Beatrix Potter's beloved tale about a mischievous bunny, reported Deadline.
Now Gleeson, who portrayed General Hux in last year's "Star Wars" sequel, has taken on another villainous role as Mr McGregor, the disgruntled farmer who tries to catch and cook Peter and his furry family members who constantly nibble away at his vegetable patch.
The cast also includes Rose Byrne in the female lead as Bea and "The Night Manager" actress Elizabeth Debicki.
Filming is set to begin in January next year in Sydney, Australia and the movie is scheduled to hit the big screen in April, 2018.