Add laptop config
This commit is contained in:
parent
58aab55090
commit
df12bcdf18
3 changed files with 27 additions and 0 deletions
|
@ -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
24
tasks/laptop.yml
Normal 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
|
Loading…
Reference in a new issue