Did Clint eastwood play a sheriff?

No but he played a deputy Marshall in his first apperancein an American made western 1968's Hang'Em High