Ansible script to spin up the VM in virtual box

Hi,

I am new to Ansible, and i am from Microsoft tech background,

i want to spin and setup an VM with redhat linux in the Virtual box, after setup the VM, i need to setup tomcat, so have installed the ansible in mac book, but from there how to setup an VM in oracle virtual box is little bit confused with vagrant.

please help the steps/article to setup VM with redhat linux in Virtual box using ansible.

Thanks
Ram

Have you looked into Vagrant <https://www.vagrantup.com>? You can create a Vagrantfile that sets up the virtual machine and then invokes Ansible to provision it with the playbook you specify. Their docs are pretty good on how to do this.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和

Kevin R. Bullock

Hello Ram,

I’m working on the same requirement.

Do you have solution for it now?

Can you help me in spinning up a VM in virtual bix using ansible, that would be great.

Thanks in advance.

Thanks,
Vijay