CLEARWATER, Fla. — The man who got fired only days after losing to the Astros in the 2017 ALCS said Thursday he is not angry about their illegal sign-stealing program.

Joe Girardi’s former players fall elsewhere on the spectrum, but the ex-Yankees manager insisted he is at peace with what has been revealed about the Astros cheating the game.

“I’m not [angry],” Girardi said. “I’m a man that has a lot of belief in the man upstairs. Things happen for a reason and I’m here in Philadelphia for a reason. And it’s been really good.”

Girardi was fired five days after the Yankees’ Game 7 loss to the Astros in 2017. In that series, the Astros won every game at Minute Maid Park, where their electronic sign-stealing system was housed, including in the postseason. Girardi was out of baseball until being hired to manage the Phillies this year.

That it may have cost people jobs — from pitchers to managers, such as Girardi — is not lost on former Yankees shortstop Didi Gregorius.

“There’s a lot of things that could have went different,” said Gregorius, now playing for Girardi again with the Phillies.. “It would impact his career and a lot of pitchers that came up. … I feel bad for all the guys that their career got screwed because of that situation.”

Gregorius agreed that it feels like the ALCS got cheated away from the Yankees, a common refrain from players on that team. But he had a more tempered reaction than David Robertson — another Yankee-turned-Phillie, who on Wednesday said what the Astros did was a “disgrace.”

“It doesn’t matter what I say because it’s not going to change the outcome anyways,” Gregorius said. “It is what it is. It was not fair, but ain’t much I can do that’s going to change the whole thing.”

Gregorius said the Yankees knew something was going on with the Astros in 2017, but not to what extent. They felt the same way last season, when they lost to the Astros in the ALCS again, though Gregorius said he wasn’t sure about them possibly wearing buzzers.

While Girardi wasn’t as outraged as some of his former players, he said he understood their reaction.

“Feelings are neither right or wrong,” Girardi said. “Feelings are feelings, so everyone’s going to feel different about it, and I’m OK with that. Express whatever you got inside and get it out. But my expression is, I’m more worried about what I have to do moving forward.”

That will include protecting the Phillies’ signs, he said, which he has already taken steps to ensure.

“That’s kind of how I look at it,” Girardi said. “Because I can’t tell you exactly [what] went on there because I wasn’t there. And I can’t tell you what happens in other clubhouses. But I can tell you what we’re going to try to do here, and that’s protect our stuff.”