Ace didn´t really sacrifice his ambitions for Whitebeard though, he was living vicariously through Whitebeard, Whitebeard had no interest in becoming the pirate king, but Ace projected his own goal of wanting to find the One Piece on him. Ace actually ignored Whitebeards orders to fight Blackbeard and Akainu