refactor: streamline Ansible playbook and logrotate configurations

- Removed environment variable lookups for logrotate settings in logrotate configuration files, replacing them with hardcoded values.
- Updated the Ansible playbook to simplify project root, deploy user, and old server configurations by removing environment variable dependencies.
- Added tasks to copy Zsh configuration files from an old server to the new server, ensuring proper permissions and cleanup of temporary files.
- Enhanced logrotate configurations for bots and system logs to ensure consistent management of log files.
This commit is contained in:
2025-09-19 13:00:19 +03:00
parent f7b08ae9e8
commit 8595fc5886
4 changed files with 231 additions and 36 deletions

View File

@@ -27,25 +27,3 @@ SERVER_IP=your_server_ip_here
# Status Page Configuration
STATUS_PAGE_PASSWORD=admin123
# Ansible Configuration (for one-time server setup)
# Основные настройки проекта
PROJECT_ROOT=/home/prod
DEPLOY_USER=deploy
DEPLOY_UID=1001
DEPLOY_GID=1001
# Старый сервер для миграции
OLD_SERVER=root@77.223.98.129
# Настройки мониторинга для Ansible
MONITORING_USERNAME=admin
MONITORING_PASSWORD=admin123
# SSL настройки
USE_LETSENCRYPT=false
# Logrotate настройки
LOGROTATE_RETENTION_DAYS=30
LOGROTATE_COMPRESS=true
LOGROTATE_DELAYCOMPRESS=true