Germany is moving some of its military personnel from Iraq to neighbouring countries over security concerns, days after the killing of a top Iranian military commander in a US drone strike.
About 30 of the 120 German soldiers in Iraq who mainly train Iraqi security forces will be redeployed to Jordan and Kuwait, the German government told parliament on Monday.
Other countries, including Slovakia and Croatia, also said they were relocating soldiers involved in a NATO training mission in Iraq.
Iraq's parliament called on Sunday for all foreign troops to leave the country after Iran's most prominent general, Qassem Soleimani, was killed on Friday in a US drone strike at a Baghdad airport.
German Defence Minister Annegret Kramp-Karrenbauer said Berlin wanted an international military alliance fighting Islamic State militants to continue but made clear it was waiting for a final decision from Iraq.
"Whether we can continue our work depends principally on the decision of the Iraqi government. Talks on that are currently ongoing and until then we're reading tea leaves," she said.
The US defense secretary denied reports the American military was preparing to withdraw from Iraq. About 5000 US troops are in Iraq, where there has been a US military presence since Saddam Hussein was toppled in 2003.
The drawdown of German troops was ordered by the US-led joint command for fighting Islamic State, the German government said.
This would apply mainly to troops in Baghdad and Taji, a city just north of the Iraqi capital where close to 30 German troops are deployed.
Out of the 120 German soldiers, about 90 are stationed in the Kurdish area in the north of the country. The German government said the forces could be moved back to Iraq if their training mission resumed.
Kramp-Karrenbauer urged Iran, which has vowed to respond to Soleimani's killing, to avoid escalation in the Middle East.
Foreign Minister Heiko Maas told public broadcaster ZDF he was concerned about a possible resurgence of Islamic State should foreign troops leave Iraq quickly. "Nobody really wants that," he said.
Croatia transferred 14 soldiers to Kuwait for safety reasons and Slovak Prime Minister Peter Pellegrini said Slovakia had temporarily relocated its seven soldiers in Iraq "in view of the current situation."