Add integration test: ensure roles including 'sys-service' define system_service_id

This test scans all roles for tasks including:
  - include_role:
      name: sys-service

If present, the role must define a non-empty 'system_service_id' in vars/main.yml.
Helps enforce consistency and prevent misconfiguration.

Ref: https://chatgpt.com/share/68a536e5-c384-800f-937a-f9d91249950c
This commit is contained in:
2025-08-20 04:46:27 +02:00
parent 55cf3d0d8e
commit 4ce681e643
3 changed files with 144 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
when: run_once_sys_ctl_alm_compose is not defined
- include_role:
name: sys-service
name: sys-service
vars:
system_service_on_calendar: "{{ SYS_SCHEDULE_HEALTH_DISC_SPACE }}"
system_service_timer_enabled: true