US President Barack Obama on Thursday said he was ready to take "targeted" and "precise" military action in Iraq if necessary following the swift advance of radical Sunni fighters.