ansible-wordpress
Ansible role for installing Wordpress. It installs Nginx and PHP-FPM as well. Backups of the Wordpress installation is done daily. Theme and plugin installation is done via filesystem, no FTP access is provisioned. A MySQL account and database is created during the run.
Requirements
Debian Jessie.
Role Variables
wordpress_fqdn: {{ ansible_fqdn }} #Site FQDN.
wordpress_mysql_server: #Address for the MySQL server.
wordpress_mysql_user: #MySQL admin username.
wordpress_mysql_password: #MySQL admin password.
Dependencies
Example Playbook
- hosts: wordpress01
roles:
- role: mysql
mysql_admin_password: qwerty123
- role: wordpress
wordpress_fqdn: blog.example.com
wordpress_password: pa55w0rd
wordpress_mysql_server: localhost
wordpress_mysql_admin_user: admin
wordpress_mysql_admin_password: qwerty123
Example requirements.yml
- src: https://git.shore.co.il/ansible/common.git
scm: git
path: roles/
name: common
- src: https://git.shore.co.il/ansible/mysql.git
scm: git
path: roles/
name: mysql
- src: https://git.shore.co.il/ansible/nginx.git
scm: git
path: roles/
name: nginx
- src: https://git.shore.co.il/ansible/wordpress.git
scm: git
path: roles/
name: wordpress
License
This software is licnesed under the MIT licese (see the LICENSE.txt
file).
Author Information
Nimrod Adar, contact me or visit my website. Patches are welcome via git send-email. The repository is located at: https://git.shore.co.il/explore.
TODO
- Depend on Nginx and common roles
- Use new MySQL admin account.
- Enforce TLS on MySQL connection