The Yankees and right-handed reliever Andrew Bailey have agreed to a Minor League deal, according to multiple reports.

The incentive-based pact is for a base salary of $2.5 million, if Bailey makes the Major League roster, which also would trigger a 2015 option or buyout, according to ESPN.

Bailey, 29, was one of the most successful closers in baseball while with the A's from 2009-11, winning American League Rookie of the Year honors in 2009 and earning two All-Star nods. He posted 75 saves with a 2.07 ERA over that stretch, but has since been hampered by injuries.

He was dealt to Boston before the 2012 season but didn't pitch until August while recovering from a thumb injury. Upon his return he posted a 7.04 ERA in 19 games.