# Multiple sites on one Vagrant box with bedrock-ansible

**URL:** https://discourse.roots.io/t/multiple-sites-on-one-vagrant-box-with-bedrock-ansible/3385
**Category:** bedrock
**Created:** 2015-04-01T19:27:49Z
**Posts:** 15
**Showing post:** 6 of 15

## Post 6 by @luqo33 — 2015-04-04T09:33:21Z

I actually run `vagrant reload --provision` at my first attempt. Anyway, I managed to get the database working be reloading vagrant yet again.

Unfortunately, another obstacle has come up. I have two sites added to my `group_vars/development` file. It appears that the second defined database overrides the first one so, in consequence, I end up with two wordpress installs, but only with one database - the one that was defined last.

To be clearer, my configuration of databases look like this:

First site:

> ```
> env:
> wp_home: http://tarasiewicz.local
> wp_siteurl: http://tarasiewicz.local/wp
> wp_env: development
> db_name: tarasiewicz_local
> db_user: luqo33
> db_password: bonzo86
> ```

Second site:

```
env:
  wp_home: http://cpkg.local
  wp_siteurl: http://cpkg.local/wp
  wp_env: development
  db_name: cpkg_local
  db_user: luqo33
  db_password: bonzo86
```

After provisioning the VM, only `cpkg_local` is present when I log in to mysql from the VM. `tarasiewicz.local` install does not have its database.

Why do I experience this issue? I would once again welcome your advice.

---

_[View the full topic](https://discourse.roots.io/t/multiple-sites-on-one-vagrant-box-with-bedrock-ansible/3385)._
