ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit 84eb7f68aa4d1b7ae62cb5653ab58deb29664ecf
parent c8b94174b803b1e9d489887bbceced71e3d2a979
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 21 Feb 2021 22:05:11 +0100

joguhrtbecher: disable hdd spindown
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/configuration/joguhrtbecher.yml b/configuration/joguhrtbecher.yml
@@ -5,6 +5,10 @@ system:
   enableOwnRepos: true
   enableSudo: true
   useNTP: true
+  extraPackages:
+    - iftop
+    - iotop
+    - hdparm
   nameservers:
     - 1.1.1.1
     - 8.8.8.8

@@ -81,6 +85,14 @@ networkd:
           - Table: 1234
           - Priority: 2000
 
+files:
+  /etc/udev/rules.d/69-hdparm-disable-spindown.rules:
+    state:   "file"
+    content: 'ACTION=="add", SUBSYSTEM=="block", KERNEL=="sda", RUN+="/usr/bin/hdparm -B 254 -S 0 /dev/sda"'
+    mode:    "0755"
+    owner:   "root"
+    group:   "root"
+
 services:
   openssh:
     enable: true