An "essential drainage installation" will be carried out on the A77 south of Maybole with temporary traffic lights in place for two and a half weeks.