2020-03-30 19:36:05 +01:00
|
|
|
- name: Install power-saving stuff
|
2018-09-14 09:48:18 +01:00
|
|
|
aur:
|
|
|
|
name: "{{ item }}"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
2019-12-09 21:09:00 +00:00
|
|
|
loop:
|
2020-04-15 08:50:11 +01:00
|
|
|
- acpi
|
2018-09-14 09:48:18 +01:00
|
|
|
- ethtool
|
2019-03-14 22:09:46 +00:00
|
|
|
- nbfc
|
2020-04-15 08:50:11 +01:00
|
|
|
- powertop
|
|
|
|
- psensor
|
2018-09-14 09:48:18 +01:00
|
|
|
- smartmontools
|
2020-04-15 08:50:11 +01:00
|
|
|
- sysstat
|
2018-09-14 09:48:18 +01:00
|
|
|
- tlp
|
2019-03-14 21:56:01 +00:00
|
|
|
- xfce4-power-manager
|
2018-09-14 09:48:18 +01:00
|
|
|
|
|
|
|
- name: Enable TLP services
|
2019-05-26 11:52:41 +01:00
|
|
|
systemd:
|
2020-03-30 19:36:05 +01:00
|
|
|
name: tlp
|
2018-09-14 09:48:18 +01:00
|
|
|
enabled: true
|
2020-06-04 09:24:05 +01:00
|
|
|
state: started
|
2018-09-14 09:48:18 +01:00
|
|
|
|
2019-03-14 22:09:46 +00:00
|
|
|
- name: Enable NBFC
|
2019-05-26 11:52:41 +01:00
|
|
|
systemd:
|
2019-03-14 22:09:46 +00:00
|
|
|
name: nbfc
|
|
|
|
enabled: true
|
2019-05-26 11:52:41 +01:00
|
|
|
state: started
|
2019-03-14 22:09:46 +00:00
|
|
|
|
2019-05-25 16:50:09 +01:00
|
|
|
- name: Install TLP config
|
|
|
|
copy:
|
2018-09-14 09:48:18 +01:00
|
|
|
src: ./files/tlp.conf
|
|
|
|
dest: /etc/default/tlp
|
|
|
|
mode: 0644
|
2019-05-26 12:11:26 +01:00
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: Create XFCE4 power manager config directory
|
2019-05-27 16:47:12 +01:00
|
|
|
file:
|
2020-03-30 19:36:05 +01:00
|
|
|
path: "{{ home }}/.config/xfce4/xfconf/xfce-perchannel-xml"
|
2019-05-27 16:47:12 +01:00
|
|
|
state: directory
|
|
|
|
owner: "{{ user }}"
|
|
|
|
mode: 0755
|
|
|
|
|
2019-05-26 12:11:26 +01:00
|
|
|
- name: Install XFCE4 power manager config
|
|
|
|
copy:
|
|
|
|
src: ./files/xfce4-power-manager.xml
|
|
|
|
dest: "{{ home }}/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml"
|
|
|
|
owner: "{{ user }}"
|
|
|
|
mode: 0644
|