First, just define your coordinate axis. You're saying that down is positive and up is negative. Fine. But you can't use T - mg. Because by T - mg, you're already making the down direction negative - that's why it's a minus instead of a plus. You're just getting confused with sign conventions. Do something simpler. Forget about signs. Net force is T + mg and is also equal to ma. Thus, T + mg = ma. Now, if you define g as negative, then T + m(-g) = m(+2). Alternatively, if you define g as positive, T + mg = m(-2).
You're confused because you're applying directionality twice. Once when you say T - mg and once again when you assign g to be either positive or negative.