2024-04-04 15:45:53 +02:00
|
|
|
- name: set service_name to cleanup-backups
|
2024-01-04 13:27:07 +01:00
|
|
|
set_fact:
|
2024-04-04 15:45:53 +02:00
|
|
|
service_name: "cleanup-backups"
|
2024-01-04 13:27:07 +01:00
|
|
|
when: run_once_cleanup_backups_timer is not defined
|
|
|
|
|
|
|
|
- name: "include role for systemd-timer for {{service_name}}"
|
|
|
|
include_role:
|
|
|
|
name: systemd-timer
|
|
|
|
vars:
|
|
|
|
on_calendar: "{{on_calendar_cleanup_backups}}"
|
2023-12-12 15:10:11 +01:00
|
|
|
when: run_once_cleanup_backups_timer is not defined
|
|
|
|
|
|
|
|
- name: run the cleanup_backups_timer tasks once
|
|
|
|
set_fact:
|
|
|
|
run_once_cleanup_backups_timer: true
|
|
|
|
when: run_once_cleanup_backups_timer is not defined
|