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:
1 parent
f6aeca3774
commit
f53992d652
7 files changed
+74
-1
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# mac
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
@@ -0,0 +1,17 @@
|
||||
# Homebrew refuses to run as root, so none of these use become.
|
||||
- name: Homebrew taps
|
||||
community.general.homebrew_tap:
|
||||
name: "{{ homebrew_taps }}"
|
||||
tags: homebrew
|
||||
|
||||
- name: Homebrew formulae
|
||||
community.general.homebrew:
|
||||
name: "{{ homebrew_formulae }}"
|
||||
state: present
|
||||
tags: homebrew
|
||||
|
||||
- name: Homebrew casks
|
||||
community.general.homebrew_cask:
|
||||
name: "{{ homebrew_casks }}"
|
||||
state: present
|
||||
tags: homebrew
|
||||
Reference in new issue
Block a user