ansible-desktop/roles/laptop/tasks/powersave.yml
2022-10-26 01:18:13 +02:00

25 lines
493 B
YAML

- name: install required packages for script
become: yes
apt:
update_cache: yes
pkg:
- linux-tools-common
- linux-tools-generic
- name: copy scripts
become: yes
copy:
src: "usr/local/sbin/{{item}}"
dest: "/usr/local/sbin/{{item}}"
mode: '0755'
loop:
- power-saver-mode
- unlimited-power
- name: add udev rules
become: yes
copy:
src: etc/udev/rules.d/99-powersave.rules
dest: /etc/udev/rules.d/99-powersave.rules
mode: '0755'