I am looking to create VM from vmware_guest module on esxi server which is working fine with following playbook,
But- I want to pass details which are needed while booting into VM e.g hostname, username or license agreement.
I tried using
1-custome values and
2-set_facts but this doesn’t work under vmware_guest module
is there any way to automate OS installation by providing variables?
But going forward you might want to use VMware guest templates and OVF images to customize and create new VMs. Take a look at “Clone from VM” and “Clone from template” in VMware. vmware_guest also allows specifying customization specification created in vCenter Customization Specification Manager.
Also, as Naveen S suggested, you can also take a look at this role which is a good start point.
I went through prompts document and yes we can pass values at execution but those values will not be useful while OS installation on VM we have created I guess.
I have a case where i need to pass information to EULA(end user licence agreement) after creating vm through play, is it possible through ansible i am new so looking for ways to solve this issue.