Initial commit: nult - Ansible deployment toolkit

Merged from veridion-gitea and veridion-act-runner-gitea repos.

nult (Null-T) - instant teleportation from Strugatsky's Noon Universe.
Like Null-T, this toolkit instantly deploys infrastructure.

Roles:
- gitea: Gitea server with PostgreSQL (Docker Compose)
- act_runner: Gitea Actions runner

Playbooks:
- gitea.yml: Deploy Gitea server
- act-runner.yml: Deploy Act Runner
- site.yml: Deploy all services

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-15 15:34:07 +01:00
commit a9554f3e5d
29 changed files with 2029 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
---
# =============================================================================
# Gitea Role Handlers
# =============================================================================
#
# Handlers are triggered by 'notify' in tasks and run at the end of the play.
# They're typically used for service restarts after configuration changes.
#
# In this role, most restarts happen via docker compose in deploy.yml,
# so handlers are minimal. These are provided for ad-hoc config changes.
# =============================================================================
- name: Restart gitea
ansible.builtin.command:
cmd: "docker compose -f {{ gitea_install_dir }}/docker-compose.yml restart {{ gitea_container_name }}"
listen: "restart gitea"
changed_when: true
- name: Restart gitea services
ansible.builtin.command:
cmd: "docker compose -f {{ gitea_install_dir }}/docker-compose.yml up -d --wait"
listen: "restart gitea services"
changed_when: true