The easiest way to root a Moto G (XT1032) Android v. 5.0.2
Steps : 



Install custom recovery TWRP(Download link)


Install SuperSU from recovery



also, take a look at this :

[GUIDE] Root XT1032/XT1033 Moto G Running Android Lollipop

just do it with above link instruction.