Migrating puppet written code into Ansible

Hi All, I have a automation code written in puppet and now we want it to move into Ansible. Is there any best way to do this migration? or we have to migrate module by module

You definitely have to migrate module-by-module. There are few similarities between Puppet and Ansible.