ESXi upgrade with Ansible

Hi All,
I want to do ESXi upgrade by using Ansible from Scratch. Does anyone has sample playbooks for disabling alarm, VMs migration,put hosts in maintenance mode, remove from vCenter and upgrade process then reconnect to vcenter. I’m new to Ansible and very hard to find some sample playbooks for VMs migration from one host to anohter host.