Deciding to do something despite knowing the risks involved because success would be very beneficial. He gambled on doing the surgery, knowing it might save the patient's life.
Pro Tip 2/3
Not Literal
Although 'gamble' often involves betting money, in this phrase, it's more about taking a risk in general. She gambled on doing the presentation without notes to appear more confident.
Pro Tip 3/3
Potential Gain
There's usually a clear, desirable outcome the person is hoping for by taking this risk. They gambled on doing the task without approval for the possibility of a promotion.