Files
computer-playbook/roles/sys-daemon
Kevin Veen-Birkenbach 3224e24d76 Refactor systemd handling
- sys-ctl-rpr-btrfs-balancer: suppress service flush for btrfs balancer (too expensive to run each play)
- sys-daemon: replace raw systemctl calls with ansible.builtin.systemd (daemon_reload, daemon_reexec)
- sys-service: split handler into 'Enable systemctl service' and 'Set systemctl service state', add become, async/poll, suppress flush guard

Conversation: https://chatgpt.com/share/68c2f7a6-6fe4-800f-9d79-3e3b0ab4a563
2025-09-11 18:24:21 +02:00
..
2025-09-11 18:24:21 +02:00
2025-08-20 15:17:04 +02:00

sys-daemon

Description

Role to reset and configure the systemd manager for Infinito.Nexus.
It ensures a clean state of the manager configuration and applies default timeout values.

Overview

  • Purges the systemd manager drop-in directory if requested.
  • Validates all active unit files before reload/reexec.
  • Applies default timeout values for systemd manager behavior.
  • Provides handler-based reload/reexec for systemd.

Features

  • Drop-in Purge: Optionally remove /etc/systemd/system.conf.d contents.
  • Manager Defaults: Deploys custom timeouts via timeouts.conf.
  • Validation: Uses systemd-analyze verify before reload.
  • Integration: Triggers daemon-reload or daemon-reexec safely.

Further Resources