The Black Stars were top seeds in Group I and will feel confident about going through after the draw was made in Lubumbabashie.
The eleven group winners go through automatically to join co-host Gabon and Equatorial Guinea with the three best runners up due to make up the sixteen qualifiers.
The qualifiers will kick off in the first week of September with the only other game this year scheduled for October.
In another draw that will be of interest to Ghanaians, Sellas Tetteh's bid to take Rwanda to their second Nations Cup has been given a stern test with the Amavubi due to play Ivory Coast, Benin and Burundi in Group 8.
The Full draw:
Group 1 Mali, Cape Verde, Zimbabwe, Liberia
Group 2 Nigeria, Guinea, Ethiopia, Madagascar
Group 3 Zambia, Mozambique, Libya, Comores
Group 4 Algeria, Morocco, Tanzania, Central African Republic
Group 5 Cameroon, Senegal, DR Congo, Mauritius
Group 6 Burkina Faso, Gambia, Namibia, Mauritania
Group 7 Egypt, South Africa, Sierra Leone, Niger
Group 8 Ivory Coast, Benin, Rwanda, Burundi
Group 9 Ghana, Congo, Sudan, Swaziland
Group 10 Angola, Uganda, Kenya, Guinea-Bissau
Group 11 Tunisia, Malawi, Chad, Botswana