Roleplaying is not required of probably 99% of D&D. In fact, the backgrounds are really the only part of the game that encourages roleplaying, via those ideals, bonds, traits, flaws.
You can literally play D&D with not a single second of roleplaying. All you need are dice rolls. "I attack. 18...