VMs migration to from one host to another host

Hi All.

I’m looking for a play book to migrate VMs from one host to another . Ansible module vmware_vmotion define only one vm at a time but if the host has more VMs we can’t write the VM name in the playbook.

Any thoughts or any sample playbook ?

Thank you
Ramesh