Click here for the basic version
This Ansible Playbook is designed to setup a Mercury-Like environment on a Production server without the configuration hassle. This playbook was forked from WPEngine's Mercury Vagrant.
Note: Remeber not to run weird scripts on your server as root without reviewing them first. Please review this playbook to ensure I'm not installing malicious software.
This Playbook will setup:
- Percona DB (MySQL)
- HHVM (Default)
- PHP-FPM (Backup)
- Nginx (Customized for WordPress)
- Varnish (Running by default)
- Memcached and APC
- Clean WordPress Install (Latest Version)
- WP-CLI
- SSH onto a newly created server
- Add Ansible with
sudo add-apt-repository ppa:rquillo/ansible
- Update Apt with
sudo apt-get update && sudo apt-get upgrade
- Install Git and Ansible with
sudo apt-get install ansible git
- Clone this repository with
git clone https://github.com/zach-adams/hgv-deploy-full/
- IMPORTANT: Change your settings inside
all
withvim|nano|emacs group_vars/all
- Run Ansible with
ansible-playbook -i hosts playbook.yml
- Remove the cloned git directory from your server
- You're good to go! A new WordPress install running HHVM and Varnish should be waiting for you at your hostname!
- You can find specific details of the site install in
group_vars/all
- This setup currently works on Ubuntu 14.04 LTS and I cannot guarantee it will run on anything else (testing other distros soon!)