Test Kitchen is a great way to test virtualbox instances, and here is an 
ansible provisioner: https://github.com/neillturner/kitchen-ansible
That will both launch and provision the machine.

Or, configure ansible directly in 
Vagrant: http://docs.ansible.com/ansible/guide_vagrant.html . In this case, 
you would still need to start and stop the vm, as you had written.


On Wednesday, June 29, 2016 at 10:16:16 PM UTC+2, Sargon wrote:
>
>
> I want to create a Virtualbox VM and provision it. 
>
> Now I can run:
>
> vagrant init bento/centos-6.7; vagrant up --provider virtualbox
>
> And it's there.  
>
> I can put this command as a local command in Ansible, but I gather there 
> is a Vagrant module as well, which is probably more involved. 
>
> Is there a good reason why I should grok the Vagrant module to do this 
> when a simple command will do?  
>
> I prefer that it looks more professional and robust, and not so "hacky" 
> but simple is good.  
>
> Thanks
>
>

-- 
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/3a931528-35fa-411a-8fba-419124241afa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to