Army teaches patience, discipline and giving life for the country. I don't understand how an army man can become addicted to gambling. Anyway to my knowledge I have never seen anyone get rich from gambling. Gambling is an addiction. When he is repeatedly losing gambling, he should have quit gambling.
The army of any country in the world cannot engage itself in any work without the opinion of the government. The OP's mentioned army got himself addicted to gambling because he thought he could make a lot of money from gambling. But he forgot that one can never get rich from gambling and even he lost his sense of humanity due to which he came back heavily in debt.