A basic ansible playbook that creates both HTML and WordPress based sites using the following web stack:
- Nginx
- PHP-FPM
- PHP APC Cache
- MariaDB
Also included are scripts to backup WordPress to Amazon S3 using s3cmd.
Fill in the appropriate variables inside host_vars and groups_vars.
There are also some hard-coded S3 URLs in the WordPress backup scripts. Be sure to update these links inside of the wordpress and html roles.
- Currently, the playbook only supports HTTP sites.
- This playbook was written for Ubuntu 14.04 LTS. It has been tested with Linode's images for this version.
- The included MariaDB configuration is based on Linode's Stack Script to limit MySQL RAM usage. The included configuration file is based on the machine having 1GB of memory available.