Sam Raimi is on board to produce — and possibly direct —  an Afghanistan war drama based on Jake Tapper’s book “The Outpost: An Untold Story Of American Valor.”

Raimi will supervise development of the script, to be penned by the writing team of Paul Tamasy and Eric Johnson (“The Fighter”). Raimi will produce with Rob Tapert and Paul Merryman will co-produce.

“The Outpost” is Combat Outpost Keating, located in Afghanistan only 14 miles from the Pakistani border, where 53 Americans prevailed against nearly 400 Taliban fighters in a day-long clash on Oct. 3, 2009.

“’The Outpost’ is an epic story of bravery, courage, and sacrifice of our men in uniform, and is absolutely a picture meant for the big screen,” Raimi said. “I’m honored to be a part of it.”

Tapper is the host of CNN’s “The Lead With Jake Tapper” and chief Washington correspondent for the network.

Raimi directed “Oz The Great and Powerful” and is best known for directing the “Spider-Man” trilogy.

Tamasy and Johnson are repped by Verve, The Gotham Group and Nelson Davis Wetzstein. Raimi’s repped by CAA.