If a woman doesn't know that her husband is gambling, then it's already a marriage full of lies. It means she doesn't know her husband and doesn't know what he's doing.
A married friend of mine had to sell his luxury car because of gambling. When he sold the car, his wife found out he was gambling, and now they constantly fight.
Indeed, lying in a relationship, especially a marriage, can be complicated. In fact, divorce isn't limited to addiction; there are also divorces that occur outside of addiction. The common thread is the deception, whether by one or both partners. It's crucial to be open with your partner, as even the smallest lie tends to escalate.
Perhaps it's best to tell them about your gambling habit and find a solution.