Stuart Baxter’s side have been drawn in Group C, alongside Ghana, Sudan, and the winners of a preliminary round match between Mauritius and Sao Tome e Principe.
While South Africa beat Ghana en route to lifting the 1996 Africa Cup of Nations and again on the way to the semifinals of the Afcon in 2000, the Black Stars have had the better of more recent meetings.
Ghana beat South Africa home and away on the way to qualifying for the 2006 Fifa World Cup in Germany, at the expense of a Bafana side that was also coached by Baxter.
In the most recent competitive meeting between the two sides, Ghana beat Shakes Mashaba’s Bafana 2-1 at the 2015 Africa Cup of Nations finals in Equatorial Guinea.
Bafana played Sudan in qualifying for the 2015 Afcon, winning 3-0 in Khartoum and 2-1 on home soil.