mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented -e "activate_all_timers=true"
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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}}
|
@@ -1 +1 @@
|
||||
docker_backups_cleanup: "{{path_administrator_scripts}}backups-cleanup/"
|
||||
docker_backups_cleanup: "{{path_administrator_scripts}}cleanup-backups/"
|
Reference in New Issue
Block a user