Ivan Nova showed he might be ready to rejoin the Yankees’ starting rotation.

Too bad he can’t hit.

Nova was a bright spot in a game the Yankees lost to the Rays, 3-1, thanks to a rough seventh inning on the mound and another punchless performance by their offense at The Stadium on Old-Timers’ Day.

The right-hander, making his first start in the majors since April 26, pitched well until there were two outs in the seventh. That’s when he hit back-to-back batters, leading to the winning runs.

“I got too excited,” said Nova, who fell to 2-2. “That was the first time this year I was pitching into the seventh inning.”

First, he hit Desmond Jennings with a fastball and followed that up by getting Ben Zobrist on the foot when he tried to strike him out with a curveball.

Shawn Kelley came in and promptly walked Evan Longoria, forcing Boone Logan to face lefty-hitting James Loney with the bases loaded.

Logan left a 1-2 slider up in the zone and the first baseman drilled a two-run single to center that eluded the lunging Jayson Nix at short.

“I thought I was really close to it,” Nix said. “But I couldn’t quite get there.”

And the Yankees’ bats, which showed signs of life the previous two games, mustered just one hit the rest of the way.

“It’s tough,” said manager Joe Girardi, whose team was looking to win its third straight over Tampa Bay. “We didn’t score a lot of runs, which made it more difficult ... We had our opportunities to get out of the inning, we just didn’t do it.”

They didn’t seem to have much of an opportunity to score more than just the first-inning run that tied the game at 1-1.

Tampa Bay starter Chris Archer (2-3) had lasted more than five innings only once in four previous starts this season, but allowed just the one run over six innings.

The Yankees were 0-for-6 with runners in scoring position, but Zoilo Almonte was the last Yankee to reach second base with his sixth-inning double.

“It’s not frustrating,” Chris Stewart said of the lack of runs. “We’re playing good games; we’re just not winning games. You want to put good at-bats together and we’re doing that, we’re just not getting the big hit. Sometimes it happens.”