War isn't ideological. It's based upon fear – fear of one country or group of people not having enough resources or land. If there were unlimited resources and unlimited land for everyone, war would become obsolete.
There are over quintillion planets in the infinite universe, as long as humanity is confined to a single planet, wars will always be a part of our existence.