Skip to content

Instantly share code, notes, and snippets.

@swalkinshaw

swalkinshaw/site.yml

Last active Jun 15, 2018
Embed
What would you like to do?
Multiple sites on one box with bedrock-ansible
# this is group_vars/development
---
www_root: /srv/www
# Define your WordPress sites here
wordpress_sites:
- site_name: site1.dev
site_hosts:
- site1.dev
user: vagrant
group: www-data
site_install: true
site_title: Site1
admin_user: admin
admin_password: admin
admin_email: admin@site1.dev
system_cron: true
run_composer: true
multisite:
enabled: false
env:
wp_home: http://site1.dev
wp_siteurl: http://site1.dev/wp
wp_env: development
db_name: site1_dev
db_user: site1_dbuser
db_password: site1_dbpassword
- site_name: site2.dev
site_hosts:
- site2.dev
user: vagrant
group: www-data
site_install: true
site_title: Site 2
admin_user: admin
admin_password: admin
admin_email: admin@site2.dev
system_cron: true
run_composer: true
multisite:
enabled: false
env:
wp_home: http://site2.dev
wp_siteurl: http://site2.dev/wp
wp_env: development
db_name: site2_dev
db_user: site2_dbuser
db_password: site2_dbpassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment