From 63445e80302c80cff718d0f63a5e6c9e1c91fe6c Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 16 Apr 2023 14:55:00 +0200 Subject: [PATCH] Agtivated btrfs health check for all hosts --- playbook.yml | 5 ----- roles/native-btrfs-health-check/files/btrfs-health-check.sh | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/playbook.yml b/playbook.yml index ffff7be5..a513831d 100644 --- a/playbook.yml +++ b/playbook.yml @@ -8,11 +8,6 @@ - native-journalctl - native-disc-space-check - native-free-disc-space - #- native-hostname -- name: setup btrfs health check - hosts: btrfs_health_check_hosts - become: true - roles: - native-btrfs-health-check - name: setup standard wireguard hosts hosts: wireguard_hosts diff --git a/roles/native-btrfs-health-check/files/btrfs-health-check.sh b/roles/native-btrfs-health-check/files/btrfs-health-check.sh index a0bd83a7..481dec2a 100644 --- a/roles/native-btrfs-health-check/files/btrfs-health-check.sh +++ b/roles/native-btrfs-health-check/files/btrfs-health-check.sh @@ -2,7 +2,7 @@ exit_code=0 for path in $(btrfs filesystem show | awk '/ path /{print $NF}') do - echo "Checking healt for $path..." + echo "Checking health for $path..." result=$(btrfs device stats $path) echo "$result" regex='\.(.*)_errs(\s*)[1-9]'