cpupower: Initial version of role

This commit is contained in:
Timo Makinen 2023-08-14 17:15:28 +00:00
parent 4846fc9bf5
commit 45c124a82b
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# See 'cpupower help' and cpupower(1) for more info
CPUPOWER_START_OPTS="frequency-set -g ondemand"
CPUPOWER_STOP_OPTS="frequency-set -g performance"

View file

@ -0,0 +1,5 @@
---
- name: Restart cpupower
ansible.builtin.service:
name: cpupower
state: restarted

View file

@ -0,0 +1,15 @@
---
- name: Copy config
ansible.builtin.copy:
dest: /etc/sysconfig/cpupower
src: cpupower.sysconfig
mode: "0644"
owner: root
group: "{{ ansible_wheel }}"
notify: Restart cpupower
- name: Enable service
ansible.builtin.service:
name: cpupower
state: started
enabled: true