Automate infrastructure through Ansible

in my project we planned to automate server build through ansible , i need to build an servers on VMware through ansible automation, if any one know how to build rhel 8/9 servers through ansible. Please share the playbook that used from your end.