dotfiles/tasks/power-saving.yml

36 lines
608 B
YAML
Raw Normal View History

2018-09-14 09:48:18 +01:00
- name: "Install power-saving stuff"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
2019-03-14 21:34:29 +00:00
when: "item not in installed_packages.stdout_lines"
2018-09-14 09:48:18 +01:00
with_items:
2019-03-14 21:34:29 +00:00
- 'acpi'
2018-09-14 09:48:18 +01:00
- ethtool
2019-03-14 22:09:46 +00:00
- nbfc
2019-03-14 21:34:29 +00:00
- 'powertop'
- 'psensor'
2018-09-14 09:48:18 +01:00
- smartmontools
2019-03-14 21:34:29 +00:00
- 'sysstat'
2018-09-14 09:48:18 +01:00
- tlp
- xfce4-power-manager
2018-09-14 09:48:18 +01:00
- name: Enable TLP services
service:
name: "{{ item }}"
enabled: true
with_items:
- tlp
- tlp-sleep
2019-03-14 22:09:46 +00:00
- name: Enable NBFC
service:
name: nbfc
enabled: true
2018-09-14 09:48:18 +01:00
- copy:
src: ./files/tlp.conf
dest: /etc/default/tlp
mode: 0644