2023-02-06 10:51:32 +00:00
|
|
|
- name: Install packages
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- powertop
|
|
|
|
state: present
|
|
|
|
|
2023-03-23 20:09:37 +00:00
|
|
|
- name: Install tmpfiles.d configuration
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item }}_tmpfiles.conf"
|
|
|
|
dest: "/etc/tmpfiles.d/{{ item }}.conf"
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: wheel
|
2023-02-18 16:30:46 +00:00
|
|
|
loop:
|
2023-03-23 20:09:37 +00:00
|
|
|
- disable_turboboost
|
2023-02-18 16:30:46 +00:00
|
|
|
|
2023-03-23 20:09:37 +00:00
|
|
|
- name: Favor energy efficiency for Speed Shift
|
|
|
|
when: hwpstate is defined and hwpstate and cores is defined
|
|
|
|
template:
|
|
|
|
src: "templates/{{ item.src }}.j2"
|
|
|
|
dest: "{{ item.dest }}"
|
2023-12-19 13:51:25 +00:00
|
|
|
mode: 0644
|
2023-03-23 20:09:37 +00:00
|
|
|
owner: root
|
|
|
|
group: wheel
|
2023-02-18 16:30:46 +00:00
|
|
|
loop:
|
2023-03-23 20:09:37 +00:00
|
|
|
- src: energy_performance_preference.conf
|
|
|
|
dest: /etc/tmpfiles.d/energy_performance_preference.conf
|
2023-03-25 13:21:43 +00:00
|
|
|
|
|
|
|
- name: Install scripts
|
|
|
|
when: hwpstate is defined and hwpstate
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
mode: 0755
|
|
|
|
owner: root
|
|
|
|
group: wheel
|
|
|
|
loop:
|
2023-12-19 01:08:06 +00:00
|
|
|
- src: cpu_set_perf_perc_linux_intel
|
2023-03-25 13:21:43 +00:00
|
|
|
dest: /usr/local/bin/cpu_set_perf_perc
|