If it’s a front hub and your fork uses a QR, you can buy a new thru-axle hub and an adapter that lets you use a thru-axle hub in a QR fork.If the axle has play, tighten the cone just a little and test again.
More road bikes have disc brakes, so more are getting thru-axles. Thru Axle Hub (TA) Skewer Hub (QR) Step 2: Using a tape measure, measure inside width of frame/fork where hub contacts frame/fork.
Next, use a 5mm allen key in the right side (drive side) of the axle, and a 17mm wrench on the nut. Quick-Release End Cap for Shimano Spline FH 11. Rotate the hub eight to 10 revolutions by hand to fully. Be sure to identify axle over or axle under springs when you select your part number. Slightly grease the shaft and threads of the axle before inserting it through the frame/fork and hub. This will give a fractionally better bit of firmness, but primarily, if you change your fork down the road, you can get one with thru-axle.