Taoiseach tells ministers to get teachers to work