cpupower: Initial version of role
This commit is contained in:
parent
4846fc9bf5
commit
45c124a82b
3 changed files with 23 additions and 0 deletions
3
roles/cpupower/files/cpupower.sysconfig
Normal file
3
roles/cpupower/files/cpupower.sysconfig
Normal 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"
|
5
roles/cpupower/handlers/main.yml
Normal file
5
roles/cpupower/handlers/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Restart cpupower
|
||||
ansible.builtin.service:
|
||||
name: cpupower
|
||||
state: restarted
|
15
roles/cpupower/tasks/main.yml
Normal file
15
roles/cpupower/tasks/main.yml
Normal 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
|
Loading…
Add table
Reference in a new issue