Add Ansible keepawake role to hold workstations awake for remote dispatch #213
Labels
No labels
burndown-2026-06
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/infrastructure#213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add an Ansible
keepawakerole to themacworkstation baseline so remote dispatch keeps running after Kai walks away from the desk, whether or not the laptop is plugged in.Behavior
A root LaunchDaemon (
me.coilysiren.keepawake) ticks every 60s and reconcilespmset disablesleep:disablesleepcovers).keepawake_maint_hour, default03): released03:00-03:59local so the macOS / ansible software-update + reboot cycle runs clean, then re-asserts at04:00.keepawake_floor_pct, default 30): on battery below the floor, allow sleep so an unattended pack can't drain to zero.Display sleep is left untouched. Every flip logs to
/var/log/keepawake.logwith its reason. Optionalkeepawake_schedule_wakeadds apmset repeat wakejust before the window (off by default - single global schedule).Scope
roles/keepawake/- defaults, tasks, handlers, manager-script + plist templates.playbooks/freshen.yml- role wired in withbecome: true, tags[keepawake, power].ansible/README.md- layout entry + section.Runtime window logic lives in the manager script (deterministic, self-contained) rather than ansible toggling at 3am, so it works even when the box is unreachable.