It's not hard but you should thoroughly check your axles and the spacers for any wear as reassembly of compromised parts will end in premature failure. Also a good time to get your discs replaced or ground if they are worn. Remember the axles nuts are left and right hand threaded (S for sinistra = left, D for Destra = Right) with the left hand thread on the left side.
The task itself requires a press, the specific axle nut socket, access to an oven, freezer and a high torque air gun. Remove the axle nut and press out the axle over something that is hollow to sit the rotor on. You'll then need to remove the bearing retaining ring (four screws, that can be a PITA, I typically use an impact driver), press out the old bearings using something of similar diameter as a guide. It's just a reverse assembly at that point, check the faces of the spacer and replace if suspect. I use an old wheel to feed the wheel studs through the rotor and axle and bolt up to keep everything together then press the hub carrier down onto that. Place the hub carrier with new bearings in the oven at 150F for 30 minutes and the axle in the freezer to help with the press fit, keep going on the press so it's a smooth insertion rather than start/stop.
The axle nuts are a cinch nut designed for one time use so should be replaced, I just keep going with the air gun until I hear the sound change to a solid ring and no further movement.
Julian