Implemented server tact

This commit is contained in:
2023-04-15 17:06:10 +02:00
parent 0f7a2fcb9e
commit 9f0df846df
24 changed files with 60 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
- name: "restart backups-cleanup.service"
- name: "reload backups-cleanup.service"
systemd:
name: backups-cleanup.service
state: restarted
state: reloaded
enabled: yes
daemon_reload: yes
- name: "restart backups-cleanup.timer"

View File

@@ -13,10 +13,10 @@
- name: create backups-cleanup.service
template: src=backups-cleanup.service.j2 dest=/etc/systemd/system/backups-cleanup.service
notify: restart backups-cleanup.service
notify: reload backups-cleanup.service
- name: create backups-cleanup.timer
copy:
src: backups-cleanup.timer
template:
src: backups-cleanup.timer.j2
dest: "/etc/systemd/system/backups-cleanup.timer"
notify: restart backups-cleanup.timer

View File

@@ -3,8 +3,7 @@ Description=starts backups-cleanup.service
[Timer]
OnBootSec=1min
OnUnitActiveSec=3h
RandomizedDelaySec=1h
OnCalendar={{on_calendar_backups_cleanup}}
[Install]
WantedBy=timers.target