feat: v2.0.0 production-ready release with Redis, OPcache and Nginx optimizations
This commit is contained in:
46
inventory/production.yml.example
Normal file
46
inventory/production.yml.example
Normal file
@@ -0,0 +1,46 @@
|
||||
# Production Server Inventory Template
|
||||
# Copy this to production.yml and adapt to your environment
|
||||
# SECURITY: Use Ansible Vault for passwords!
|
||||
|
||||
wordpress_servers:
|
||||
hosts:
|
||||
your-server.example.com:
|
||||
ansible_host: YOUR_SERVER_IP
|
||||
ansible_user: your_user
|
||||
# ansible_ssh_pass: "your_password" # Use SSH keys instead!
|
||||
# ansible_become_pass: "your_sudo_password" # Use passwordless sudo instead!
|
||||
domain_name: example.com
|
||||
|
||||
# SSL Configuration
|
||||
ssl_enabled: false # Set to true for HTTPS with Let's Encrypt
|
||||
ssl_email: admin@example.com # Required if ssl_enabled=true
|
||||
|
||||
# WordPress Database (CHANGE THESE! Use Ansible Vault!)
|
||||
mysql_root_password: "{{ vault_mysql_root_password }}"
|
||||
wordpress_db_name: "wordpress"
|
||||
wordpress_db_user: "wp_user"
|
||||
wordpress_db_password: "{{ vault_wordpress_db_password }}"
|
||||
|
||||
# WordPress Admin (CHANGE THESE! Use Ansible Vault!)
|
||||
wp_admin_user: "admin"
|
||||
wp_admin_password: "{{ vault_wp_admin_password }}"
|
||||
wp_admin_email: "admin@example.com"
|
||||
wp_site_title: "My WordPress Site"
|
||||
|
||||
# Ultimate Performance Features (for lemp-wordpress-ultimate.yml)
|
||||
enable_redis: true # Enable Redis object caching
|
||||
enable_opcache: true # Enable PHP OPcache
|
||||
|
||||
# Performance Tuning (optional overrides)
|
||||
php_memory_limit: 512M
|
||||
php_upload_max_filesize: 128M
|
||||
redis_maxmemory: 256mb
|
||||
|
||||
# Group variables (apply to all hosts)
|
||||
wordpress_servers:
|
||||
vars:
|
||||
# Common settings
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
|
||||
# WordPress settings
|
||||
wp_debug: false # Set to true for development/debugging
|
||||
Reference in New Issue
Block a user