Setup cleanup-backups variable bug

This commit is contained in:
Kevin Veen-Birkenbach 2025-04-05 20:56:25 +02:00
parent 3ae3da3673
commit 54bef2a091
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
4 changed files with 5 additions and 4 deletions

View File

@ -6,9 +6,9 @@
state: present state: present
when: run_once_cleanup_backups_service is not defined when: run_once_cleanup_backups_service is not defined
- name: "create {{docker_cleanup_backups}}" - name: "create {{cleanup_backups_directory}}"
file: file:
path: "{{docker_cleanup_backups}}" path: "{{cleanup_backups_directory}}"
state: directory state: directory
mode: 0755 mode: 0755
when: run_once_cleanup_backups_service is not defined when: run_once_cleanup_backups_service is not defined
@ -16,7 +16,7 @@
- name: create cleanup-backups.py - name: create cleanup-backups.py
copy: copy:
src: "cleanup-backups.py" src: "cleanup-backups.py"
dest: "{{docker_cleanup_backups}}cleanup-backups.py" dest: "{{cleanup_backups_directory}}cleanup-backups.py"
when: run_once_cleanup_backups_service is not defined when: run_once_cleanup_backups_service is not defined
- name: create cleanup-backups.cymais.service - name: create cleanup-backups.cymais.service

View File

@ -5,4 +5,4 @@ OnFailure=systemd-notifier.cymais@%n.service
[Service] [Service]
Type=oneshot Type=oneshot
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_lock_script }} {{ system_maintenance_services | join(' ') }} --ignore {{system_maintenance_cleanup_services| join(' ') }} --timeout "{{system_maintenance_lock_timeout_backup_services}}"' ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_lock_script }} {{ system_maintenance_services | join(' ') }} --ignore {{system_maintenance_cleanup_services| join(' ') }} --timeout "{{system_maintenance_lock_timeout_backup_services}}"'
ExecStart=/bin/sh -c '/usr/bin/python {{docker_cleanup_backups}}cleanup-backups.py --backups-folder-path {{backups_folder_path}} --maximum-backup-size-percent {{size_percent_maximum_backup}}' ExecStart=/bin/sh -c '/usr/bin/python {{cleanup_backups_directory}}cleanup-backups.py --backups-folder-path {{backups_folder_path}} --maximum-backup-size-percent {{size_percent_maximum_backup}}'

View File

@ -0,0 +1 @@
cleanup_backups_directory: "{{path_administrator_scripts}}cleanup-backups/"