️: replace cpupower with customized tuned

This commit is contained in:
VC
2024-11-04 13:24:14 +01:00
parent fd8b5c8e85
commit 92cbac9568
6 changed files with 36 additions and 13 deletions

View File

@@ -0,0 +1 @@
powersave spindown-disk

View File

@@ -0,0 +1 @@
manual

View File

@@ -0,0 +1,6 @@
---
- name: Restart tuned
ansible.builtin.service:
name: tuned
state: restarted

View File

@@ -0,0 +1,27 @@
---
- name: Install tuned
ansible.builtin.apt:
name: "{{ item }}"
state: present
update_cache: true
loop:
- tuned
- tuned-utils
- name: Put config files
ansible.builtin.copy:
src: "files/{{ item }}"
dest: "/etc/tuned/{{ item }}"
owner: root
group: root
mode: "0o644"
loop:
- active_profile
- profile_mode
notify: Restart tuned
- name: Ensure tuned is started
ansible.builtin.service:
name: tuned
state: started