- roles/nginx/templates/188-all-sites.conf.j2: 8 個服務 Jinja2 模板 - roles/docker-compose-service/tasks/main.yml: 通用 Docker Compose role - roles/swap/tasks/main.yml: swap2.img 管理 role (110 專用) - roles/pm2-service/tasks/main.yml: PM2 process 狀態確認 role - .gitea/workflows/ansible-lint.yml: infra/ansible/** 異動自動 lint Sprint B-1 完成: Git = 唯一真相 (Host IaC 骨架) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
45 lines
929 B
YAML
45 lines
929 B
YAML
---
|
|
# AWOOOI Ansible — 192.168.0.110 (DevOps 金庫) 專用變數
|
|
|
|
# Swap 設定
|
|
swap_files:
|
|
- path: /swap.img
|
|
size_mb: 3896 # 3.8GB (現有)
|
|
- path: /swap2.img
|
|
size_mb: 4096 # 4GB (Sprint A 新增)
|
|
|
|
# Docker Compose 服務 (在 /opt/ 下)
|
|
docker_compose_services:
|
|
harbor:
|
|
dir: /opt/harbor
|
|
service: "" # 全部服務
|
|
expected_port: 5000
|
|
sentry:
|
|
dir: /opt/sentry
|
|
service: ""
|
|
expected_port: 9000
|
|
gitea:
|
|
dir: /opt/gitea
|
|
service: ""
|
|
expected_port: 3001
|
|
langfuse:
|
|
dir: /opt/langfuse
|
|
service: ""
|
|
expected_port: 3100
|
|
|
|
# bitan pharmacy (Docker)
|
|
bitan_dir: /home/wooo/apps/bitan-pharmacy
|
|
bitan_port: 3003
|
|
|
|
# wooo-aiops frontend (PM2, port 3000)
|
|
wooo_aiops_dir: /home/wooo/apps/wooo-aiops
|
|
wooo_aiops_pm2_name: wooo-aiops
|
|
|
|
# GitHub Runners
|
|
github_runner_count: 5
|
|
|
|
# keepalived
|
|
keepalived_role: BACKUP
|
|
keepalived_priority: 90
|
|
keepalived_vip: "192.168.0.200"
|