15 lines
393 B
YAML
15 lines
393 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
|
|
- import_tasks: nvidia-drivers.yml
|