Add laptop config

This commit is contained in:
Jake Howard 2018-09-14 09:48:18 +01:00
parent 58aab55090
commit df12bcdf18
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 27 additions and 0 deletions

View File

@ -17,5 +17,8 @@
- import_tasks: tasks/yaourt.yml
- import_tasks: tasks/fonts.yml
- import_tasks: tasks/autostart.yml
- import_tasks: tasks/dabapps.yml
when: ansible_fqdn == "TOO-Work"
- import_tasks: tasks/laptop.yml
when: ansible_fqdn == "TOO-Laptop"

24
tasks/laptop.yml Normal file
View File

@ -0,0 +1,24 @@
- name: "Install power-saving stuff"
aur:
use: yay
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
with_items:
- ethtool
- smartmontools
- tlp
- name: Enable TLP services
service:
name: "{{ item }}"
enabled: true
with_items:
- tlp
- tlp-sleep
- copy:
src: ./files/tlp.conf
dest: /etc/default/tlp
mode: 0644