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>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
---
|
|
# =============================================================================
|
|
# Gitea Act Runner - Systemd Service Setup
|
|
# =============================================================================
|
|
#
|
|
# Creates and enables the systemd service for act_runner.
|
|
# This ensures the runner:
|
|
# - Starts automatically on boot
|
|
# - Restarts if it crashes
|
|
# - Can be controlled via systemctl
|
|
#
|
|
# =============================================================================
|
|
|
|
# Deploy systemd service unit file from template.
|
|
- name: Deploy systemd service file
|
|
ansible.builtin.template:
|
|
src: act_runner.service.j2
|
|
dest: /etc/systemd/system/act_runner.service
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify:
|
|
- Reload systemd
|
|
- Restart act_runner
|
|
|
|
# Reload systemd to pick up the new/changed unit file.
|
|
# This is immediate (not via handler) to ensure service can be started.
|
|
- name: Reload systemd daemon
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
|
|
# Enable and start the act_runner service.
|
|
- name: Enable and start act_runner service
|
|
ansible.builtin.systemd:
|
|
name: act_runner
|
|
state: started
|
|
enabled: true
|