Loading databases on virtual systems is not as straight forward as it should be. Last time the foundation for using Ansible was set down on our quest to be able to have fully functional database servers on virtual servers automatically. But that prompted a few of you to remind me that you do not always need Ansible.
You can have Vagrant do the work. Modify the vagrant file to run a script to run a script when provisioned, such as
and create the setup.sh shell script.
#!/bin/bash # # example setup script for LAMP stack on Vagant box sudo apt-get -y update sudo apt-get -y install apache2 php5 libapache2-mod-php5 ## …