Repeat a task in a way that if you'd describe the task with a few words you would use the same words for both tasks. E.g. "Throw a baseball at the target".
It's physically impossible to identically repeat any action. If you e.g. throw a ball twice, no matter how hard you try, neither your movement nor the travel of the ball will be identical. Even someone with perfect ball throwing skills will e.g. not be able to hit the same exact spot on a target with sub-nanometer accuracy. So it would be kinda pointless to claim that "do the same thing multiple times" means "do an absolutely identical string of absolute identical actions multiple times".
So obviously it's a bit more bird's eye view: If you throw a ball twice at the same target, you have done the same thing twice. Even if you don't manage to hit exactly the same spot and your motion wasn't exactly identical.