Ok you are gambling just for fun, your friends and neighbors knows that and a friend invited you to his party to be one of the candidates as a councilor and campaign will start in 6 months, now, of course, you need to have a good reputation, will you stop gambling just to have a good image this coming campaign and how will you defend yourself if accused as a gambler.
No , I will not, it is not good to change the way you live just to please others or just to make your image good for other people to reach their expectations as well. You don't need to explain yourself you are a gambler, but you are responsible in every actions that you will be doing. I think it is more than enough for them to trust you, and also you are a good tax payer as a gambler, and as long as you are not addicted and not fall in any bad crimes, I think it is good.
Everything have it's own limitations, if you are sure that you are in control of this kind of activities then you are good to go and there's no need for you to change up, reputations only be bothered if you are irresponsible and you can't control things out. There's a big need for you to change up and choose between if you are are too much engaged and your willingness to secure your identity to be more positive.