- Detect available PHP version at runtime - Try PHP 8.4 first, fallback to 8.3 - Dynamically set PHP service names and paths - Remove hardcoded PHP 8.4 references from vars
52 lines
1.3 KiB
YAML
Executable File
52 lines
1.3 KiB
YAML
Executable File
# Ubuntu/Debian family variables
|
|
---
|
|
# Package names for Ubuntu/Debian systems (PHP version is detected and installed dynamically)
|
|
packages:
|
|
- mariadb-server
|
|
- python3-pymysql
|
|
- unzip
|
|
- fail2ban
|
|
- ufw
|
|
|
|
# Service names
|
|
mysql_service: mariadb
|
|
nginx_service: nginx
|
|
php_fpm_service: php{{ php_version }}-fpm
|
|
|
|
# Package manager
|
|
package_manager: apt
|
|
|
|
# PHP paths (dynamic based on detected version)
|
|
php_fpm_config_path: /etc/php/{{ php_version }}/fpm
|
|
php_cli_config_path: /etc/php/{{ php_version }}/cli
|
|
php_fpm_pool_path: /etc/php/{{ php_version }}/fpm/pool.d
|
|
php_fpm_socket: /run/php/php{{ php_version }}-fpm.sock
|
|
|
|
# Nginx paths
|
|
nginx_config_path: /etc/nginx
|
|
nginx_sites_available: /etc/nginx/sites-available
|
|
nginx_sites_enabled: /etc/nginx/sites-enabled
|
|
|
|
# MySQL paths
|
|
mysql_config_path: /etc/mysql
|
|
mysql_socket: /var/run/mysqld/mysqld.sock
|
|
mysql_pid_file: /var/run/mysqld/mysqld.pid
|
|
mysql_log_error: /var/log/mysql/error.log
|
|
|
|
# Nginx User
|
|
nginx_user: www-data
|
|
|
|
# Default PHP version
|
|
php_version: "8.4"
|
|
|
|
# System paths
|
|
web_root: /var/www/html
|
|
|
|
# SSL Configuration (optional)
|
|
ssl_cert_path: /etc/ssl/certs/nginx-selfsigned.crt
|
|
ssl_cert_key_path: /etc/ssl/private/nginx-selfsigned.key
|
|
|
|
# Additional Variables for Templates
|
|
enable_www_redirect: false
|
|
enable_nginx_cache: false
|