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
This commit is contained in:
2025-11-18 22:32:31 +01:00
parent 762d00eebf
commit ddbdefd27f
9 changed files with 442 additions and 34 deletions

29
roles/gitea/meta/main.yml Normal file
View File

@@ -0,0 +1,29 @@
---
galaxy_info:
author: Rick's Infrastructure Team
description: Self-contained Gitea Git service for rick-infra
company: Personal Infrastructure
license: MIT
min_ansible_version: "2.9"
platforms:
- name: ArchLinux
versions:
- all
galaxy_tags:
- git
- gitea
- development
- archlinux
dependencies:
- role: postgresql
tags: ['postgresql', 'infrastructure']
- role: caddy
tags: ['caddy']
# Self-contained Gitea service
# Manages its own database using PostgreSQL infrastructure