VMWare ESXi and VCSA automated deployment playbooks
This repository provides an Ansible playbook to mount an ISO image via Redfish, set boot override to USB, and reboot a Supermicro BMC-managed host to boot from the mounted ISO.
It is especially useful in bare-metal automation environments like test labs, CI pipelines or ESXi provisioning setups.
Fill the esxi-vars.yml
bmc_user: "user" # Username to authenticate with the BMC's Redfish API
bmc_pass: "pass" # Password for the BMC user
iso_host: "host" # IP or hostname of the SMB server hosting the ISO
iso_filename: "esxi_iso_supermicro.iso" # Full filename of the ISO image to mount via Redfish
iso_path: "/downloads/esxi_iso_supermicro.iso" # Path on the SMB share where the ISO is located
Fill the inventory file with the ansible_host. The playbook will automatically generate the corresponding BMC address as mgmt-{{ inventory_hostname }}.
[esxi]
esxi1 ansible_host=f17-h17
esxi2 ansible_host=f17-h18
To run the playbook in parallel across multiple hosts:
ansible-playbook -i inventory.yml esxi-deploy.yml --forks 10
To target a single host:
ansible-playbook -i inventory.yml esxi-deploy.yml -l esxi1