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>
18 lines
426 B
YAML
18 lines
426 B
YAML
# 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
|