Purana Jyotisha Sangraha · by Vyasa
Chapter 13 · Kashi: Planet and Nakshatra Lingas
स्कन्दपुराणम् : काश्यां ग्रहनक्षत्रलिङ्गानि लोलार्कश्च
गुरुं सर्वसुरेंद्राणां परितः स्वगुणैर्गुरुम् ।अभिषिंच विधानेन देवाचार्यपदे मुदे ॥ ५४ ॥
From the Skanda Purana, print Kashi Khanda (Purvardha) ch 17, verse 54.
...the teacher of all the lords of gods, great on every side by his own qualities. Anoint him by the rule to the post of the gods' teacher, for joy.
Simple meaning: Shiva asked Brahma to anoint him as the gods' teacher.
अतीव धिषणाधीशो मम प्रीतो भविष्यति ।
Brahma accepted the order at once.
सुरज्येष्ठः सुराचार्यं चकारांगिरसं तदा ।
Brahma made Angirasa the gods' teacher, and the gods celebrated.
गुरुपूजां व्यधुः सर्वे गीर्वाणा मुदिताननाः ।
The gods worshipped him, and Vasishtha and others anointed him.