ansible-desktop/roles/laptop/tasks/asus-x13-flow.yml

14 lines
354 B
YAML
Raw Normal View History

2023-05-17 12:51:15 +00:00
- 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