Files
toallab-automation/roles/oatakan.windows_template_build/tasks/power.yml

16 lines
483 B
YAML

---
- block:
- name: change power plan to high performance
win_power_plan:
name: high performance
rescue:
- name: use powershell to change plan to high performance
win_shell: |
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
#powercfg /change monitor-timeout-ac 0
powercfg /change disk-timeout-ac 0
powercfg /change standby-timeout-ac 0
powercfg /change hibernate-timeout-ac 0
ignore_errors: true