mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-30 00:11:03 +01:00
22 lines
643 B
YAML
22 lines
643 B
YAML
- name: "create {{storage_optimizer_directory}}"
|
|
file:
|
|
path: "{{storage_optimizer_directory}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create system-storage-optimizer.cymais.service
|
|
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:
|
|
src: system-storage-optimizer.py
|
|
dest: "{{storage_optimizer_script}}"
|
|
mode: 0755
|
|
|
|
- name: "optimize storage performance"
|
|
systemd:
|
|
name: system-storage-optimizer.cymais.service
|
|
state: started |