add option for tuned-ppd

This commit is contained in:
Pig Monkey 2025-01-11 18:37:04 -08:00
parent aa9255b16e
commit 0126cb6ff2
4 changed files with 26 additions and 1 deletions

View file

@ -336,3 +336,5 @@ hardened:
enable_namespaces: true
kernel_parameters: "quiet consoleblank=60"
power_management: "tlp"

View file

@ -1,5 +1,14 @@
---
- include_tasks: tlp.yml
when: power_management is defined and power_management == "tlp"
- include_tasks: tuned.yml
when: power_management is defined and power_management == "tuned"
- name: Install x86_energy_perf_policy
pacman:
name: x86_energy_perf_policy
state: present
- name: Copy touchpad configuration file
copy:

View file

@ -2,7 +2,6 @@
- name: Install TLP
pacman:
name:
- x86_energy_perf_policy
- ethtool
- tlp
- tlp-rdw

View file

@ -0,0 +1,15 @@
---
- name: Install TuneD
pacman:
name: tuned-ppd
state: present
tags:
- tuned
- name: Enable and start TuneD
service:
name: tuned.service
enabled: yes
state: started
tags:
- tuned