Ansible Cisco 5k Port-Profile issues

Hi everyone,

I am rather new to network automation so do excuse my lack of knowledge on the subject.
I wish to setup a playbook for a cisco nexus 5k that will assign a number of interfaces to a predefined port-profile. Is there anyone who could provide an example of such a playbook or if it is even possible.

Thanks for the assistance.