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:
23
roles/gitea/handlers/main.yml
Normal file
23
roles/gitea/handlers/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user