ansible-desktop/roles/laptop/tasks/main.yml
2022-10-26 01:25:32 +02:00

14 lines
354 B
YAML

- name: Check if it's laptop
stat:
path: /sys/class/power_supply/BAT0/charge_control_end_threshold
register: battery_limiter_available
- name: Powersave tasks
import_tasks: powersave.yml
- when: battery_limiter_available.stat.exists
block:
- import_tasks: battery.yml
- import_tasks: asusctl.yml
- import_tasks: supergfxctl.yml