OnPrem Automation - Ip Addressing & Hostnames

Hi Everyone,

I am new to Ansible and i am hoping to get some advice on deploying on-prem servers in VMware.

I am trying to automate the deployment of web servers from a VMware template, installation of IIS, load balancer configurations etc. Our current processes are very manual, including the two topics i required advice on assigning hostnames and ip addresses.

Typically we would statically assign an ip address and manually determine a hostname and enter this information whilst deploying from a template using a customization specificaiton in VMware.

How is everyone doing this in an automated world? would this still need to be manual with Ansible or is there something i am missing (i expect there is) that will allow Ansible to fully automate what feels like a simple problem?

I did consider using a DHCP server to deal with the IP address problem and is ofcourse always an option.

I would be very grateful and interested to understand some of the infrastructure architecture that is helping to automate deployments end to end.

FYI, i have got Ansible running and deploying a VMware template which works great…but i have manually set the hostname and ip address.

Thanks
Paul