mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-26 21:45:20 +02:00
- Unified variable naming: system_service_id → systemctl_id - Added automatic removal of trailing '@' for role directory resolution - Improved first_found search: prefer target role, fallback to sys-systemctl defaults - Split template resolution logic to avoid undefined variable errors - Added assertion in sys-timer to forbid '@' in systemctl_id - Corrected default systemctl.service.j2 template description - Cleaned up path handling and script directory generation Context: conversation about fixing template resolution and @ handling https://chatgpt.com/share/68a39994-1bb0-800f-a219-109e643c3efb
8 lines
258 B
Django/Jinja
8 lines
258 B
Django/Jinja
[Unit]
|
|
Description=Service for {{ SOFTWARE_NAME }} role '{{ systemctl_id }}' (DEFAULT TEMPLATE)
|
|
OnFailure={{ SYS_SERVICE_ON_FAILURE_COMPOSE }}
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/bin/bash {{ systemctl_id | get_service_script_path( service_src | filetype ) }}
|