Yoga postures should be good for hernia. Depending on where you have it you can practice different exercises. Always remember to listen to your body when practicing, and to stop if you feel any extra pain.
Some of the poses in the next link can help you. I would recommend to go to a yoga class though and ask your teacher