Moved sys-opt-ssd-hdd to a callable version in svc-opt-ssd-hdd

This commit is contained in:
2025-07-12 11:42:25 +02:00
parent f2187e4bc0
commit c09dec8b0f
18 changed files with 48 additions and 40 deletions

View File

@@ -0,0 +1,22 @@
- name: "create {{storage_optimizer_directory}}"
file:
path: "{{storage_optimizer_directory}}"
state: directory
mode: 0755
- name: create svc-opt-ssd-hdd.cymais.service
template:
src: svc-opt-ssd-hdd.service.j2
dest: /etc/systemd/system/svc-opt-ssd-hdd.cymais.service
notify: reload svc-opt-ssd-hdd.cymais.service
- name: create svc-opt-ssd-hdd.py
copy:
src: svc-opt-ssd-hdd.py
dest: "{{storage_optimizer_script}}"
mode: 0755
- name: "optimize storage performance"
systemd:
name: svc-opt-ssd-hdd.cymais.service
state: started