ansible/roles/power_management/tasks/configure.yml

25 lines
502 B
YAML

---
- name: Copy powertop service
template:
src: templates/powertop.service
dest: /etc/systemd/system/powertop.service
become: true
- name: Reload all services
ansible.builtin.systemd:
daemon_reload: yes
become: true
- name: Start and enable the new powertop service
ansible.builtin.systemd:
state: started
enabled: true
name: powertop
become: true
- name: Copy hdparm.conf
template:
src: templates/hdparm.conf
dest: /etc/hdparm.conf
become: true