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
11 lines
505 B
YAML
11 lines
505 B
YAML
UNIT_SUFFIX_REMOVER_PACKAGE: "unsure"
|
|
|
|
## Paths
|
|
systemctl_role_name: "{{ systemctl_id | regex_replace('@','') }}"
|
|
systemctl_role_dir: "{{ [ playbook_dir, 'roles', systemctl_role_name ] | path_join }}"
|
|
systemctl_script_dir: "{{ [ PATH_SYSTEMCTL_SCRIPTS, systemctl_id ] | path_join }}"
|
|
|
|
## Settings
|
|
systemctl_copy_files: true # When set to false file copying will be skipped
|
|
systemctl_timer_enabled: false # When set to true timmer will be loaded
|
|
systemctl_state: "{{ omit }}" |