Optimized storage optimizer

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-10 12:46:45 +01:00
parent 3ee5617f6d
commit 0eaf152640
3 changed files with 12 additions and 5 deletions

View File

@ -7,6 +7,13 @@
- role: update
when: mode_update | bool
- name: optimize storage performance
hosts: all
become: true
roles:
- role: storage-optimizer
when: path_mass_storage or path_rapid_storage
- name: setup standard wireguard
hosts: wireguard_server
become: true

View File

@ -1,4 +1,4 @@
- name: "reload storage-optimizer service"
- name: "start storage-optimizer service"
systemd:
name: storage-optimizer.cymais.service
daemon_reload: yes
name: backup-docker-to-local-everything.cymais.service
state: started

View File

@ -8,11 +8,11 @@
template:
src: storage-optimizer.service.j2
dest: /etc/systemd/system/storage-optimizer.cymais.service
notify: reload storage-optimizer service
notify: start storage-optimizer service
- name: create storage-optimizer.py
template:
src: storage-optimizer.py.j2
dest: "{{storage_optimizer_script}}"
mode: 0755
notify: reload storage-optimizer service
notify: start storage-optimizer service