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:
26
roles/act_runner/handlers/main.yml
Normal file
26
roles/act_runner/handlers/main.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
# =============================================================================
|
||||
# Gitea Act Runner - Ansible Handlers
|
||||
# =============================================================================
|
||||
#
|
||||
# Handlers are triggered by 'notify' in tasks and run once at the end of play.
|
||||
# They provide a way to restart services only when configuration changes.
|
||||
#
|
||||
# Usage in tasks:
|
||||
# - name: Deploy config
|
||||
# template: ...
|
||||
# notify: restart act_runner
|
||||
#
|
||||
# =============================================================================
|
||||
|
||||
# Reload systemd configuration after unit file changes.
|
||||
# Required before systemctl can see updated unit files.
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
# Restart the act_runner service to apply configuration changes.
|
||||
- name: Restart act_runner
|
||||
ansible.builtin.systemd:
|
||||
name: act_runner
|
||||
state: restarted
|
||||
Reference in New Issue
Block a user