Files
ansible/roles/mac/README.md
T
PhilandClaude Opus 5.5 fe268bd171 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>
2026-11-11 06:20:43 -07:00

1.3 KiB

mac

Manages cogitator-02, an Apple Silicon Mac on the tailnet (mac.yml, PLAYBOOK=mac.yml bin/deploy).

  • 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. phil deliberately doesn't get passwordless sudo, because Hermes Agent runs as phil and takes commands over Telegram.

Not managed here: Hermes Agent (~/.hermes, self-updating git install, launchd agent ai.hermes.gateway) and Tailscale.