Solved cleanup-failed-docker-backups path bug

This commit is contained in:
2025-04-16 10:18:18 +02:00
parent 9c680a26f7
commit de94fe4ae3
3 changed files with 8 additions and 7 deletions

View File

@@ -10,16 +10,16 @@
register: pkgmgr_output
when: run_once_cleanup_failed_docker_backups is not defined
- name: Set fact for backup_docker_to_local_cleanup_folder
- name: Set fact for backup_docker_to_local_cleanup_script
set_fact:
backup_docker_to_local_cleanup_folder: "{{ pkgmgr_output.stdout }}"
backup_docker_to_local_cleanup_script: "{{ pkgmgr_output.stdout.rstrip('/') ~ '/cleanup-all.sh' }}"
when: run_once_cleanup_failed_docker_backups is not defined
- name: configure cleanup-failed-docker-backups.cymais.service
template:
template:
src: cleanup-failed-docker-backups.service.j2
dest: /etc/systemd/system/cleanup-failed-docker-backups.cymais.service
notify: reload cleanup-failed-docker-backups.cymais.service daemon
notify: Reload and restart cleanup-failed-docker-backups.cymais.service
when: run_once_cleanup_failed_docker_backups is not defined
- name: set service_name to the name of the current role