Optimized handlers and variable names

This commit is contained in:
2024-01-10 23:36:18 +01:00
parent 0a74d9f275
commit ef8a0925b6
12 changed files with 20 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
- name: "reload system-storage-optimizer.cymais.service"
systemd:
name: system-storage-optimizer.cymais.service
state: reloaded
daemon_reload: yes

View File

@@ -8,6 +8,7 @@
template:
src: system-storage-optimizer.service.j2
dest: /etc/systemd/system/system-storage-optimizer.cymais.service
notify: reload system-storage-optimizer.cymais.service
- name: create system-storage-optimizer.py
copy:

View File

@@ -4,5 +4,5 @@ OnFailure=systemd-notifier.cymais@%n.service
[Service]
Type=oneshot
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_lock_script }} {{ system_maintenance_services | join(' ') }} --ignore system-storage-optimizer backup-remote-to-local'
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_lock_script }} {{ system_maintenance_services | join(' ') }} --ignore system-storage-optimizer backup-remote-to-local --timeout "{{sytem_maintenance_lock_timeout_storage_optimizer}}"'
ExecStart=/bin/sh -c '/usr/bin/python {{storage_optimizer_script}} --rapid-storage-path {{path_rapid_storage}} --mass-storage-path {{path_mass_storage}}'