From 8e760bc968753959e0a5645f76e1887ff1bd9e5a Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Fri, 21 Oct 2022 12:01:48 +0200 Subject: [PATCH] include btrfs maintenance scripts to lbu --- roles/cryptoraid/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/cryptoraid/tasks/main.yml b/roles/cryptoraid/tasks/main.yml index d8aaef6..b194d53 100644 --- a/roles/cryptoraid/tasks/main.yml +++ b/roles/cryptoraid/tasks/main.yml @@ -14,6 +14,15 @@ - "btr_scrub.sh" - "fs_trim.sh" +- name: include btrfs maintainance scripts to lbu + lbu: + include: + - /usr/local/bin/btr_defrag.sh + - /usr/local/bin/btr_balance.sh + - /usr/local/bin/btr_scrub.sh + - /usr/local/bin/fs_trim.sh + when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"] + - name: copy btrbk config copy: src: "host_files/btrbk/{{ ansible_hostname }}/btrbk.conf"