If Iraqi forces aren't making good progress against Islamic State militants in the next several months, the U.S. should consider embedding American troops with the Iraqis, the Army's retiring top general said Wednesday.

Gen. Raymond Odierno, who retires as Army chief of staff on Friday, said the U.S. forces would not be directly involved in the fight.

"I believe that if we find in the next several months that we're not making the progress that we have, we should probably absolutely consider embedding some soldiers with them, and see if that would make a difference," Odierno told reporters. "I think that's an option we should present to the president."

Speaking during his final Pentagon press conference, Odierno hit a broad range of topics, and spoke at length about Iraq and his frustrations as a commander who spent three long tours there only to see the country plunge again into chaos.

He discounted suggestions — including by Republican presidential contender Donald Trump — that the U.S. should take more aggressive military action in Iraq, saying the solution lies with political and economic reforms. He said the U.S. could probably go into Iraq with enough force to defeat the Islamic State, but the success would not last.

"We'd probably be right back where we are today six months later," Odierno said. "I absolutely believe that the region has to solve this problem. The U.S. cannot solve this problem for the region."

Odierno is stepping down and will retire on Friday after 39 years in the military and four years at the U.S. Military Academy at West Point. His service has been punctuated by three tours in Iraq that included leading the 4th Infantry Division during the 2003 invasion and serving as the top military commander in the country from 2008-2010.

"It is frustrating to look at what has happened inside of Iraq," said Odierno, recalling that in 2010 and 2011, the U.S. "thought we had it in a place that was really headed in the right direction." He said violence was down, the economy was growing and the political situation was stable.

"As it turns out, they weren't prepared to handle it," he said. "The political factions just simply weren't able to work together, and based on that, people became frustrated. When people become frustrated, they tend to turn to violence."

And that, he said, allowed Islamic State militants to exploit the fissures and find open territory in Syria to begin to grow their forces and build their capabilities.

He called the current situation a stalemate, adding that while IS has been "blunted" and has made little progress since U.S. airstrikes began about a year ago, the group has been able to maintain its overall membership numbers through successful recruiting. He said the U.S. continues to work to help Iraq improve its military operations, and hinted that we are "probably getting ready to see one here in a few days."

In other comments, he called Russia the most dangerous military threat to the U.S. right now, because Moscow is "more mature" than many other U.S. adversaries and has shown significant, sophisticated capabilities in its invasion of Ukraine.

He said the Army has been working to rebuild its ability to fight an adversary like Russia over the past 18 months, mainly training for hybrid warfare, which includes a mix of conventional, counterinsurgency, cyber, space and other military capabilities.