Files
public-setupfiles/ansible playbooks/keep_pc_from_sleeping.yml
T
WickedYoda 4d5c390d46 add playbooks and power shell scripts
add playbooks and power shell scripts
2026-10-21 12:59:57 -05:00

12 lines
307 B
YAML

---
- name: Keep Windows from sleeping
hosts: windows
gather_facts: false
tasks:
- name: Disable automatic sleep on AC and battery
ansible.windows.win_command: "powercfg.exe /change {{ item }} 0"
loop:
- standby-timeout-ac
- standby-timeout-dc
changed_when: true