Health minister will, however, run in left-wing party's primary and keep his ministerial role until new government is formed