Mac: power settings, firewall, SSH key

- pmset: never sleep, no disk sleep, restart after a power cut, wake on
  network. The Mac had sleep 1 and only stayed up because BlueBubbles runs
  caffeinate.
- Application firewall on, keeping signed software allowed automatically,
  stealth and block-all off. Hermes's ad hoc signed Python (dashboard on
  9119) is allowed explicitly, since an unattended Mac blocks unsigned
  programs silently.
- Local id_ed25519.pub in phil's authorized_keys (already there).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-11 06:20:43 -07:00
1 parent f53992d652
commit fe268bd171
6 files changed
+102 -2

No files matched your search

+12 -2
View File
@@ -3,8 +3,18 @@
Manages cogitator-02, an Apple Silicon Mac on the tailnet (`mac.yml`,
`PLAYBOOK=mac.yml bin/deploy`).
- **Homebrew**: taps, formulae and casks listed in `group_vars/mac/main.yml`.
Installs what's missing; never upgrades or removes.
- **Homebrew** (tag `homebrew`): taps, formulae and casks listed in
`group_vars/mac/main.yml`. Installs what's missing; never upgrades or removes.
- **SSH key** (tag `ssh`): your local `~/.ssh/id_ed25519.pub` in phil's
`authorized_keys`. Other keys there are left alone.
- **Power** (tag `power`): `mac_pmset` in `group_vars/mac/main.yml`: never
sleep, power back on after a power cut, wake on network.
- **Firewall** (tag `firewall`): macOS's application firewall on, with signed
software allowed automatically (SSH, BlueBubbles, AirPlay, Tailscale), no
stealth mode and no block-all. Hermes's own Python isn't properly signed, so
it's allowed explicitly (its web dashboard listens on port 9119). Any other
unsigned program that needs incoming connections must be added the same way,
or the firewall silently blocks it.
Ansible logs in as `phil`. sudo needs phil's password, which is in the vault
as `vault_cogitator02.become_password`; only tasks with `become: true` use it.