Renamed to backup and cleanup roles

This commit is contained in:
2023-11-16 17:07:28 +01:00
parent 0d4eb75afe
commit c70f0b2580
59 changed files with 125 additions and 125 deletions

View File

@@ -0,0 +1,3 @@
# role cleanup-backups-timer
Timer for cleaning up old backups

View File

@@ -0,0 +1,6 @@
- name: "restart backups-cleanup.timer"
systemd:
name: backups-cleanup.timer
state: restarted
enabled: yes
daemon_reload: yes

View File

@@ -0,0 +1,2 @@
dependencies:
- cleanup-backups-service

View File

@@ -0,0 +1,5 @@
- name: create backups-cleanup.timer
template:
src: "backups-cleanup.timer.j2"
dest: "/etc/systemd/system/backups-cleanup.timer"
notify: restart backups-cleanup.timer

View File

@@ -0,0 +1,10 @@
[Unit]
Description=starts backups-cleanup.service
[Timer]
OnCalendar={{on_calendar_backups_cleanup}}
RandomizedDelaySec={{randomized_delay_sec}}
Persistent=true
[Install]
WantedBy=timers.target