Wales will face Finland in a Euro 2024 play-off semi-final on 21 March following Thursday’s draw.
Rob Page’s side will be at home in Cardiff for the one-legged tie.
If Wales wins, they will be at home again against either Poland or Estonia five days later in a play-off final to reach the tournament in Germany.
Wales missed out on automatic qualification after the 1-1 draw with Turkey on Tuesday, coupled with Croatia’s 1-0 win over Armenia.
While missing out on an automatic place was a blow, Wales at least had the security of a guaranteed play-off place, courtesy of their involvement in the top tier of the Nations League’s most recent edition.
Wales have enjoyed success in recent play-offs, beating Scotland and then Ukraine to reach the 2022 World Cup in Qatar, qualifying for the tournament for the first time since 1958.