Oldham Athletic will travel to Mansfield Town in the first round of the Emirates FA Cup.
Latics last faced the Stags in the second round of the competition in 2013/14, winning 4-1 in a replay.The tie will be played on the weekend of November 7.
Full details will follow in due course.