What are pros and cons for an adjunct professor job at a community college for an IT professional?
Without wanting to sound harsh, this whole post is all about you and how it will benefit your further career (after leaving this job). You seem to forget that you will be teaching real, young people that need a good teacher, in order to get the education they deserve. So, unless you refocus on them first, perhaps you should reconsider getting this job for simply "overcoming your fears, developing leadership skills, which you could then use in private sector" and leave it to someone more passionate about it.

To directly answer your question: Getting a job you are not sure you are going to like and risk being bad at it or prematurely leave, always looks bad on any resume. So, unless you are really passionate about this, perhaps you should stick to what you already know.