Ansible for turning off/turning on VMs

Hi,
I’m fairly new to Ansible, but I think I have a grasp of it now. I’m looking into leveraging it to make management of our VMs a bit easier, including being able to turn on/off our VMs via playbook. I’m thinking the playbook will power up the vcenter server by connecting to the esxi host, and then turn on the vms by connecting to the vcenter vm. At least, that’s how it is logically in my head. Looking into the vsphere_guest module, all the documentation appears to be focused on creating/deleting vms. In order to power off a VM, is it just a matter of using the state: option? And does this power off the vm, or does it also gracefully shutdown? And finally, since it’s using pysphere and I believe using the vcenter web api/sdk, is this even possible (connecting to the esxi host directly)? Please educate me if I’m way off base here