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>
24 lines
971 B
YAML
24 lines
971 B
YAML
---
|
|
# =============================================================================
|
|
# 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
|