Hello, I've recently done just this - and I coupled the VM creation with PXE booting. I have two PXE menus in place, the default one just says 'boot to HD'. The other one is the install menu, with a kickstart line. I control the use of this with Ansible by doing the following:
https://gist.github.com/phips/2777a564e10d53824df8 On Tuesday, 6 January 2015 10:07:53 UTC+1, Patel Parimal wrote: > > Hi, > I am newbie to Ansible. > > I have gone through the online documentation and examples for creating new > VM on Ansible Docs - vsphere_guest ( > http://docs.ansible.com/vsphere_guest_module.html). > > I want to automate VM creation and OS installation process using Ansible. > > Currently I have VMWare ESXi available which doesn't support VM cloning, > so I need to create a new VM every time from scratch and install OS(RHEL 6) > into it. > > Is there any way to provide kickstart file URL in Ansible Playbook (for > example, static HTTP URL like http://192.168.0.1/ks/ks.cfg) so after > newly built VM is powered on, OS will be installed into it ? > > Thanks and regards, > Parimal > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4af2ebed-cecb-4ba1-964a-bd76c0e128ed%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
