This repo contains Ansible playbooks specific to building Hyper-V VM's and associated infrastructure for my Production and Lab Hyper-V environment.
You would need to start by installing Ansible onto a machine where you would like to run playbooks from.
In my case, I have Ansible installed on a dedicated node which also acts as an Azure DevOps agent so that I can run all my playbooks via CI/CD pipelines.
The documentation site has everything you need to setup all components for Ansible so I encourage you to read through it and familiarize yourself with the key concepts.