My gender role had little to do with my problems with my gender identity. Now, I did go into the military for several years trying to 'man up' after I was 'cured' with testosterone injections. But, after that, most of my career was spent on digital electronics and software, a male dominated field with a small but significant female presence, where the males were almost all hard-core nerds. (The 'dude-bro' phenomenon in tech companies, particularly startups, is relatively recent.)
Heck, it was while interviewing people for a tech position that I encountered a transwoman in the early stages of transition, and surprised myself with the thought "I wish I were brave enough to do that!"
Gender identity and gender presentation have much more effect on me than gender role. If you want to poke at gender role, look at my home life. For decades, I've been the person who cooks and cleans and tends the garden at home. I'm quite good at it. The first (non-gender) therapist I saw actually asked me about this, and when I told him I was the homemaker in the family, he got that sage look on his face, said "Ah, I see" or something like that, and scribbled a bit on his notepad. Chauvinist psychologist!