The government hopes to tempt teachers out of retirement while local authorities are seeking teachers among Ukraine refugees.