ansible-desktop/roles/laptop/tasks/main.yml
2022-09-03 15:53:10 +02:00

11 lines
299 B
YAML

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