mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Moved sys-opt-ssd-hdd to a callable version in svc-opt-ssd-hdd
This commit is contained in:
22
roles/svc-opt-ssd-hdd/tasks/main.yml
Normal file
22
roles/svc-opt-ssd-hdd/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user