The Parks And Recreation actor told MTV News that he did not agree with critics who claimed that Gervais went too far with many of the jokes he made and believed that he was "really funny".
"I thought he did a great job," Ansari said.
"Sometimes with these award shows it's tough because the audiences are drinking and not really paying attention. It's a tough job."
He reiterated: "I thought he did a great job. I thought he was really funny. I really enjoyed it."
Gervais has stood by his appearance though admitted that he will probably not return for next year's broadcast.