Ireland will participate in a peacekeeping operation in Ukraine if there is a deal to end the war, the Irish premier said, but the country will not form part of a “deterrent force”.