Files
rick-infra/site.yml
Joakim ddbdefd27f Add self-contained Gitea Git service with PostgreSQL integration
- Implements complete Gitea Git service following rick-infra self-contained architecture
- Uses PostgreSQL infrastructure role as dependency and manages own database/user
- Native Arch Linux installation via pacman packages
- Automatic database setup (gitea database and user creation)
- SystemD service with security hardening and proper dependency management
- Caddy reverse proxy integration deployed to sites-enabled directory
- SSH server on port 2222 with automatic host key generation
- Production-ready with LFS support, security headers, and HTTPS via Caddy
- Follows simplified configuration approach with essential variables only
- Self-contained pattern: service manages complete setup independently
2025-11-18 22:33:56 +01:00

22 lines
584 B
YAML

---
# Security hardening establishes secure foundation before web services
# - import_playbook: playbooks/security.yml
- name: Deploy Core Infrastructure
hosts: arch-vps
become: yes
gather_facts: yes
roles:
# # Infrastructure services
# - role: postgresql
# tags: ['postgresql', 'infrastructure', 'database']
# # - role: caddy
# # tags: ['caddy', 'infrastructure', 'web']
#
# Application services
- role: gitea
tags: ['gitea', 'git', 'development']
# - role: sigvild-gallery
# tags: ['sigvild', 'gallery', 'wedding']