Implemented -e "activate_all_timers=true"

This commit is contained in:
2023-11-16 19:43:54 +01:00
parent c913d1f62c
commit 298b1d106e
20 changed files with 42 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
- name: "reload backups-cleanup.service"
- name: "reload cleanup-backups.service"
systemd:
name: backups-cleanup.service
name: cleanup-backups.service
state: reloaded
enabled: yes
daemon_reload: yes

View File

@@ -11,13 +11,13 @@
state: directory
mode: 0755
- name: create backups-cleanup.py
- name: create cleanup-backups.py
copy:
src: "backups-cleanup.py"
dest: "{{docker_backups_cleanup}}backups-cleanup.py"
src: "cleanup-backups.py"
dest: "{{docker_backups_cleanup}}cleanup-backups.py"
- name: create backups-cleanup.service
- name: create cleanup-backups.service
template:
src: "backups-cleanup.service.j2"
dest: "/etc/systemd/system/backups-cleanup.service"
notify: reload backups-cleanup.service
src: "cleanup-backups.service.j2"
dest: "/etc/systemd/system/cleanup-backups.service"
notify: reload cleanup-backups.service

View File

@@ -4,4 +4,4 @@ OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
ExecStart=/usr/bin/python {{docker_backups_cleanup}}backups-cleanup.py --backups-folder-path {{backups_folder_path}} --maximum-backup-size-percent {{size_percent_maximum_backup}}
ExecStart=/usr/bin/python {{docker_backups_cleanup}}cleanup-backups.py --backups-folder-path {{backups_folder_path}} --maximum-backup-size-percent {{size_percent_maximum_backup}}

View File

@@ -1 +1 @@
docker_backups_cleanup: "{{path_administrator_scripts}}backups-cleanup/"
docker_backups_cleanup: "{{path_administrator_scripts}}cleanup-backups/"