Iraq will not take sides amid tensions in the Middle East, the Iraqi deputy prime minister said on Thursday, as a row between the United States and Iran escalated.