Modular Ansible Role for deploying and configuring WordPress featuring InMotion's optimized UltraStack configuration
- CentOS 7.x or later
- Debian 9 or later
- Ubuntu 16.04 LTS or later
- role: inmotionhosting.apache
- role: inmotionhosting.mysql
- role: inmotionhosting.php_fpm
- role: inmotionhosting.wordpress
- collection: community.general
- collection: ansible.posix
The following roles are required when use_ultrastack: true
- role: inmotionhosting.nginx_proxy
- role: inmotionhosting.redis
UltraStack is a set of server configurations created by InMotion Hosting technical staff focused on optimization and performance for specific content management systems.
NGINX is part of UltraStack, serving as a reverse-proxy and cache to significantly speed up your website requests. Page cache with a short TTL is utilized to allow efficient handling of a large influx of traffic and cache rules to prevent it from caching logged in/cookie'd users.
PHP-FPM (FastCGI Process Manager) is an alternative to conventional PHP implementation. Each pool of PHP-FPM works as its own full instance of PHP complete with it's own configs, limits, and resources.
Redis, short for Remote Dictionary Server, provides object caching for SQL and other server processes within a database and utilizes much faster system memory instead of using server hard drive resources. This allows for taking those intensive common database queries and caching them which allows for a significantly content delivery.
Available variables are listed below with their default values (you can also see defaults/main.yml
)
Variable | Definition |
---|---|
use_ultrastack | By default, the inclusion of this role will enable the UltraStack configuration. Switching this to false will prevent the installation of Nginx and Redis. |
use_redis | Enable/disable Redis installation |
site_domain | The domain to associate with service configuration. |
ultrastack_w3tc_settings | If installing on top of WordPress, configure additional W3TC settings. |
nginx_ratelimit_enable | Enable rate limiting on nginx_ratelimit_paths |
nginx_ratelimit_burst | Burst setting on nginx_ratelimit_zone |
nginx_ratelimit_nodelay | Enable or disable Nginx's delay setting on nginx_ratelimit_zone |
nginx_ratelimit_zone | Name of the Nginx rate limit zone |
nginx_ratelimit_paths | Regex paths to rate limit |
nginx_cache_bypass_paths | Regex paths on which to enable cache bypass |
nginx_cache_purge_enable | Switch to enable location block to purge cache using ngx_cache_purge modulle |
nginx_vts_enable | Switch to enable NGINX Configuration for vts module |
nginx_cache_profile | Load a pre-configured NGINX Cache Profile |
Note: If using the UltraStack optimizations its highly recommended to use the w3-total-cache
plugin.
- hosts: wordpress_ultrastack
roles:
- role: inmotionhosting.apache
- role: inmotionhosting.mysql
- role: inmotionhosting.php_fpm
- role: inmotionhosting.wordpress
# nginx_proxy and redis are included conditionally from within the
# wordpress_ultrastack role
- role: inmotionhosting.wordpress_ultrastack
vars:
use_ultrastack: true
GPLv3