Ansible Vagrant Examples
github.com
github.com
I use them together for almost every project I work on, Vagrant spins up the virtual machine and Ansible sets everything up on it (as well as taking care of provisioning servers when I'm ready to deploy).
Small plug for my personal open source project using these two technologies (and many others): https://github.com/johnthedebs/basicproject
Vagrant gives you your choice of provisioning tools, so you can run shell scripts, Ansible, Chef, Puppet, or even Docker containers to get your virtual machine set up to match your production environment (or however else you need it).
Vagrant and Ansible make a great pair for the same reasons Ansible is great for provisioning other environments. It speeds up the provisioning process, leaves no extra dependencies installed on your virtual machine, and runs idempotently making it easy to work out the kinks in your server configurations.