The three-time All-Ireland winner has agreed to take charge for the 2027 campaign.