The game was called with one out in the top of the ninth due to the weather.
Lyles, making his case for a spot in Houston's rotation, was rocked for 11 hits and eight earned runs in 4 2/3 innings. Yankees starter Adam Warren worked 5 1/3 innings to get the win, giving up 10 hits and six earned runs.
The Astros scored four runs in the second inning to take a 4-2 lead, including a three-run home run to left field by outfielder Justin Ruggiano. Marwin Gonzalez followed with a triple and scored on a Brian Bogusevic grounder.
The Yankees tied the game in the third on RBIs by Ibanez and Francisco Cervelli, but Chris Snyder's RBI single in the bottom of the inning put the Astros ahead, 5-4. The Yankees crushed the ball in the fifth, beginning with a Curtis Granderson double ahead of Cano's homer.
Mark Teixeira followed Cano with a double to left, and Ibanez hit a long homer to right to put the Yankees in control, 8-5. Carlos Lee hit a home run for the Astros in the fifth inning.
Bogusevic added a solo homer in the seventh, while Yankees prospect Dante Bichette Jr. hit the second of his two homers on the day in the top of the eighth.
Chris Johnson raised his spring average to .364 with three hits, including his fifth homer of Grapefruit League play, a solo shot in the eighth.
Up next: The Astros close out the Grapefruit League portion of their spring schedule when they face the Detroit Tigers at 12:05 p.m. CT in Lakeland. The game can be heard on Gameday Audio. Wandy Rodriguez, the Astros' Opening Day starter, will make his final start of the spring before facing the Rockies on April 6 in Houston.