Initial commit: Ansible playbook for Gitea Act Runner deployment
Some checks failed
Ansible Lint / Ansible Lint Check (push) Has been cancelled
Some checks failed
Ansible Lint / Ansible Lint Check (push) Has been cancelled
Automated deployment of act_runner on Ubuntu 20.04+ servers: - Docker CE installation (DEB822 format) - Node.js 24.x via NodeSource - act_runner binary with SHA256 verification - systemd service with security hardening - CI: ansible-lint via Gitea Actions 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