Ireland confirms it will ask for a bailout