Add cogitator-02 (Mac) with its own playbook

cogitator-02 is an Apple Silicon Mac on the tailnet running Hermes Agent.
It gets a `mac` group and mac.yml, kept apart from site.yml so it never
runs with the server's deploys (PLAYBOOK=mac.yml bin/deploy).

The mac role starts by recording the Homebrew taps, formulae and casks
already installed (present only, never upgrades or removes), so the first
run changes nothing.

No passwordless sudo on the Mac: Hermes runs as phil and takes commands
over Telegram. Ansible's sudo password is vault_cogitator02.become_password
and only tasks with become: true use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-11 06:12:07 -07:00
1 parent f6aeca3774
commit f53992d652
7 files changed
+74 -1

No files matched your search

+8
View File
@@ -53,6 +53,7 @@ bin/deploy --tags services # every service, no system setup
bin/deploy --tags common,cron # base setup and cron jobs only
bin/deploy --check --diff --tags <tag> # dry run, allowed from any checkout
PLAYBOOK=dns.yml bin/deploy # Route53 records
PLAYBOOK=mac.yml bin/deploy # the Mac (cogitator-02)
bin/vault-run <command> # edit secrets ($VAULT_PLAIN)
# First-time setup of a new server (public IP, before Tailscale)
@@ -72,6 +73,13 @@ One server, `cogitator-01` (netcup VPS), listed twice in `hosts.yml`:
DNS A records point at the public IP; Caddy on the same machine routes by
subdomain.
A second host, `cogitator-02` (group `mac`, reached at
`cogitator-02.porgy-porgy.ts.net` over Tailscale), is an Apple Silicon Mac
running Hermes Agent. `mac.yml` manages it with the `mac` role, logged in as
phil without passwordless sudo: tasks that need root set `become: true` and use
`vault_cogitator02.become_password`. Homebrew tasks must not use become. See
`roles/mac/README.md`.
### Roles (`site.yml` runs common, docker, cron)
- **bootstrap**: user, SSH key, passwordless sudo, UFW, then `artis3n.tailscale`.
- **common**: `aptitude`, `jq`, daily unattended security updates, SSH keys only (no root login), UFW on with default deny.