For democracy to prevail in a given State, a consensus across the political spectrum to play by its rules and keep non-political elements off the business of statecraft is indispensable.
The role of the armed forces is simple – to submit before the government of the day, whosoever that may be, and carry out every lawful order dictated to it.