refactor: Remove RedHat/CentOS support, focus on Ubuntu/Debian
BREAKING CHANGE: Removed RedHat/CentOS/Rocky Linux support to improve stability - Remove all RedHat/CentOS-specific code and variables - Consolidate Ubuntu/Debian variables into single debian-family.yml - Simplify CI/CD pipeline (remove CentOS tests) - Remove unstable multi-OS complexity - Update documentation to reflect Ubuntu/Debian focus - Streamline playbooks for better maintainability This change makes the project more stable and maintainable by focusing on the most common server distributions (Ubuntu/Debian) instead of trying to support multiple OS families with different package managers and configurations.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Ubuntu-specific variables
|
||||
# Ubuntu/Debian family variables
|
||||
---
|
||||
# Package names for Ubuntu
|
||||
# Package names for Ubuntu/Debian systems
|
||||
packages:
|
||||
- nginx
|
||||
- mysql-server
|
||||
@@ -37,3 +37,9 @@ nginx_sites_enabled: /etc/nginx/sites-enabled
|
||||
|
||||
# MySQL paths
|
||||
mysql_config_path: /etc/mysql
|
||||
|
||||
# Default PHP version
|
||||
php_version: "8.3"
|
||||
|
||||
# System paths
|
||||
web_root: /var/www/html
|
||||
@@ -1,39 +0,0 @@
|
||||
# Debian-specific variables
|
||||
---
|
||||
# Package names for Debian (similar to Ubuntu but may have version differences)
|
||||
packages:
|
||||
- nginx
|
||||
- mariadb-server
|
||||
- php8.2-fpm
|
||||
- php8.2-mysql
|
||||
- php8.2-curl
|
||||
- php8.2-gd
|
||||
- php8.2-intl
|
||||
- php8.2-mbstring
|
||||
- php8.2-soap
|
||||
- php8.2-xml
|
||||
- php8.2-xmlrpc
|
||||
- php8.2-zip
|
||||
- python3-pymysql
|
||||
- unzip
|
||||
|
||||
# Service names
|
||||
mysql_service: mariadb
|
||||
nginx_service: nginx
|
||||
php_fpm_service: php8.2-fpm
|
||||
|
||||
# Package manager
|
||||
package_manager: apt
|
||||
|
||||
# PHP paths
|
||||
php_fpm_config_path: /etc/php/8.2/fpm
|
||||
php_cli_config_path: /etc/php/8.2/cli
|
||||
php_fpm_pool_path: /etc/php/8.2/fpm/pool.d
|
||||
|
||||
# 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
|
||||
@@ -1,67 +0,0 @@
|
||||
---
|
||||
# CentOS/RHEL/Rocky Linux specific variables
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
|
||||
# Package names
|
||||
nginx_package: nginx
|
||||
mysql_packages:
|
||||
- mariadb-server
|
||||
- mariadb
|
||||
- python3-PyMySQL
|
||||
php_packages:
|
||||
- php
|
||||
- php-fpm
|
||||
- php-mysqlnd # Correct package name for CentOS
|
||||
- php-gd
|
||||
- php-xml
|
||||
- php-mbstring
|
||||
- php-curl
|
||||
- php-zip
|
||||
- php-intl
|
||||
- php-soap
|
||||
- php-opcache
|
||||
|
||||
# Service names
|
||||
nginx_service: nginx
|
||||
mysql_service: mariadb
|
||||
php_fpm_service: php-fpm
|
||||
|
||||
# PHP Configuration
|
||||
php_version: "8.1" # Default PHP version for CentOS 9
|
||||
php_fpm_socket: /run/php-fpm/www.sock
|
||||
php_fpm_pool_dir: /etc/php-fpm.d
|
||||
php_ini_path: /etc/php.ini
|
||||
php_fpm_conf: /etc/php-fpm.d/www.conf
|
||||
|
||||
# Nginx Configuration
|
||||
nginx_conf_dir: /etc/nginx
|
||||
nginx_sites_available: /etc/nginx/conf.d
|
||||
nginx_sites_enabled: /etc/nginx/conf.d
|
||||
nginx_user: nginx
|
||||
|
||||
# MySQL Configuration
|
||||
mysql_conf_dir: /etc/mysql
|
||||
mysql_conf_file: /etc/my.cnf.d/mysql-server.cnf
|
||||
mysql_socket: /var/lib/mysql/mysql.sock
|
||||
mysql_pid_file: /var/run/mariadb/mariadb.pid
|
||||
mysql_log_error: /var/log/mariadb/mariadb.log
|
||||
|
||||
# System paths
|
||||
web_root: /var/www/html
|
||||
log_dir: /var/log
|
||||
|
||||
# Package manager
|
||||
package_manager: yum
|
||||
|
||||
# Additional repositories needed
|
||||
epel_release: epel-release
|
||||
remi_release: "https://rpms.remirepo.net/enterprise/remi-release-{{ ansible_distribution_major_version }}.rpm"
|
||||
|
||||
# SELinux booleans for web services
|
||||
selinux_booleans:
|
||||
- httpd_can_network_connect
|
||||
- httpd_execmem
|
||||
- httpd_unified
|
||||
|
||||
# Firewall service
|
||||
firewall_service: firewalld
|
||||
Reference in New Issue
Block a user