Implemented sys-svc-cln-anon-volumes as service so that it can be triggert after sys-ctl-rpr-docker-hard

This commit is contained in:
2025-08-22 14:48:50 +02:00
parent 95a2172fff
commit f1a2967a37
10 changed files with 50 additions and 45 deletions

View File

@@ -0,0 +1,18 @@
- block:
- name: "pkgmgr install"
include_role:
name: pkgmgr-install
vars:
package_name: dockreap
- include_role:
name: sys-service
vars:
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
system_service_tpl_exec_start: dockreap --no-confirmation
system_service_tpl_exec_start_pre: /usr/bin/python {{ PATH_SYSTEM_LOCK_SCRIPT }} {{ SYS_SERVICE_GROUP_MANIPULATION | join(' ') }} --ignore {{ SYS_SERVICE_CLEANUP_ANONYMOUS_VOLUMES }} --timeout "{{ SYS_TIMEOUT_CLEANUP_SERVICES }}"
system_service_copy_files: false
- include_tasks: utils/run_once.yml
when:
- run_once_sys_ctl_cln_anon_volumes is not defined