The EU is determined to avoid a repeat of the 2015 migration crisis and will rely on countries neighbouring Afghanistan to host and manage the arrivals of refugees.