Hi guys,
Could you please help me with the guidance to create VM in ESXi using ansible playbook?
I tried to find proper one over forums, unfortunately could not find.
Regards.
Hi guys,
Could you please help me with the guidance to create VM in ESXi using ansible playbook?
I tried to find proper one over forums, unfortunately could not find.
Regards.
https://docs.ansible.com/ansible/latest/scenario_guides/vmware_scenarios/faq.html#can-i-deploy-a-virtual-machine-on-a-standalone-esxi-server
“Yes. vmware_guest can deploy a virtual machine with required settings on a standalone ESXi server. However, you must have a paid license to deploy virtual machines this way. If you are using the free version, the API is read-only.”
Actually,
I am using ESXi evaluation mode (free). I created .yml file with the following entry:
You will want to use the vmware_guest module:
There are great examples at the bottom of this page. The first listed example is what you will want to use.
https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_guest_module.html
Sorry, I was behind on the thread. Please disregard.
yes, I followed exactly as mentioned in the 1st option
Looks like your vm_guest formatting part is wrong