Joe Girardi has agreed to a three-year contract to manage the Yankees. The agreement to take over as Joe Torre's replacement is worth an average salary of at least $2 million annually, a baseball official said Tuesday, speaking on condition of anonymity because the team had not yet announced the deal.