14 lines
354 B
YAML
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
|