Jonathan Kodjia scored against his former club as Aston Villa beat Bristol City to record back-to-back wins for only the third time this season.