Add Ansible keepawake role to hold workstations awake for remote dispatch #213
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/advocate
role/director
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/science
role/sysadmin
state
ambient
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…
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.