After a hernia
surgery, there is an induration that persists for a long duration because of the mesh incorporated within the body which gives rise to a foreign body reaction and incites inflammation with resultant fibrosis
which in turn helps in strengthening the repair. This would make you feel uncomfortable for a long duration of time and the area would slowly get soft with time. You do not need to be concerned regarding this as this is an entirely normal phenomenon.