ansible-role-apache/wordpress-nginx
Trevor Oke ba8f47e2a5 move hosts to hosts.example
- move hosts file
  - add gitignore for hosts
  - this modification will allow admins to add their own hosts
    without worrying about accidentally uploading them to
    external servers.
2013-10-21 18:07:38 -04:00
..
group_vars updating group_vars with new wordpress version 3.6 and Sha256sum check. 2013-08-05 11:57:10 -06:00
roles updating group_vars with new wordpress version 3.6 and Sha256sum check. 2013-08-05 11:57:10 -06:00
hosts.example move hosts to hosts.example 2013-10-21 18:07:38 -04:00
LICENSE.md add CC licenses to AnsibleWorks-contributed examples 2013-10-03 17:44:59 -07:00
README.md move hosts to hosts.example 2013-10-21 18:07:38 -04:00
site.yml Initial commit of a Wordpress site deployment playbook 2013-06-30 21:54:21 -07:00

Wordpress+Nginx+PHP-FPM Deployment

  • Requires Ansible 1.2 or newer
  • Expects CentOS/RHEL 6.x hosts

These playbooks deploy a simple all-in-one configuration of the popular Wordpress blogging platform and CMS, frontend by the Nginx web server and the PHP-FPM process manager. To use, copy the 'hosts.example' file to 'hosts' and edit the hosts inventory file to include the names or URLs of the servers you want to deploy.

Then run the playbook, like this:

ansible-playbook -i hosts site.yml

The playbooks will configure MySQL, Wordpress, Nginx, and PHP-FPM. When the run is complete, you can hit access server to begin the Wordpress configuration.

Ideas for Improvement

Here are some ideas for ways that these playbooks could be extended:

  • Parameterize the Wordpress deployment to handle multi-site configurations.
  • Separate the components (PHP-FPM, MySQL, Nginx) onto separate hosts and hande the configuration appropriately.
  • Handle Wordpress upgrades automatically.

We would love to see contributions and improvements, so please fork this repository on GitHub and send us your changes via pull requests.