Files
computer-playbook/roles/sys-service
kevinveenbirkenbachandClaude Opus 5 6f5d62c87c style: reflow two task conditions the way autoformat writes them
Both hunks are line-wrapping with identical semantics, produced by make autoformat writing to the tree during a quality pass. They are separated from the fix bundles because they are not behaviour changes and should not ride along in a commit that claims to fix something.

The sys-service hunk is byte-identical to e2d03408e8 on feature/designer, which ran its gate first; same blob hashes on both sides, so a later merge resolves to a no-op rather than a conflict. Leaving it out would only mean every future gate rewrites it and the branch carries a standing dirty diff.

The web-app-moodle hunk has no counterpart on any ref.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-15 15:01:57 +02:00
..
…
…

sys-service

Description

Role to manage systemd service units for Infinito.Nexus software stacks. It installs or removes unit files, configures runtime behavior, and ensures services are properly deployed.

Overview

  • Resets service units by removing old or obsolete definitions.
  • Deploys new service unit files and service scripts.
  • Optionally sets up timers linked to the services.
  • Ensures correct reload/restart behavior across the stack.
  • Provides the shared files/debug.sh SPOT for reusable service-failure diagnostics.
  • Exposes tasks/utils/debug.yml as the canonical Ansible wrapper around that script.

Features

  • Unit Cleanup: Automated removal of old service units.
  • Custom Templates: Supports both systemctl.service.j2 and systemctl@.service.j2.
  • Timers: Integrates with sys-timer for scheduled execution.
  • Runtime Limits: Configurable RuntimeMaxSec per service.
  • Handlers: Automatic reload/restart of services when definitions change.
  • Shared Diagnostics: Centralized systemctl/journalctl/unit-file diagnostics via files/debug.sh.
  • Wrapper Task: Reusable Ansible include in tasks/utils/debug.yml for calling and printing the shared diagnostics.

Further Resources