Question re: Can Ansible boot an ISO file on a bare metal server?

Hi,

I want to automate the physical server provisioning and build process. Can anyone please let me know that, does Ansible can boot an ISO file on a bare metal server?

1. If yes, can you please explain how the connection is established between remote and host server. Also the booting procedure.

2. After booting the server how can we automate the process/pass the variables to assign the hostname, IP address for the physical server.

Thanks in advance.

This might help.

“Automate bare metal server provisioning using Ironic (bifrost) and the ansible deploy driver | Mirantis” https://www.mirantis.com/blog/automate-bare-metal-server-provisioning-using-ironic-bifrost-and-the-ansible-deploy-driver/

Regards
Dhananjay

Directly I don’t believe so but depending on what kind of out of band management capabilities your server has it might be possible in combination with a few other things. If it has a management interface that can be acted on via API you might be able to do it via that somehow. Or you might be able to find a way to get it to pxe boot and load the iso. But that would require a pxe boot server and the setup for that.

Do you have more details on what you are trying to accomplish? What kind of physical server? Do you have any sort of pxe or bare metal provisioning system in your environment? Redhat satellite/foreman can be setup to do that and ansible can be used to automate operations in satellite so by chaining it all together you could accomplish it but it’s not as simple as a single module.

Thanks for your response.

I want to automate booting an ISO file, assigning hostname and IP address to a physical server. Physical server is going to be HP servers and it will have HP ‘ILO’ (Integrated lights Out).
hpilo_boot module can boots a system through its HP iLO interface. But had a question i.e After booting the server how can we automate the process/pass the variables to assign the hostname, IP address for the physical server.

Thanks.