Mac: Hermes settings via hermes config, full pre-update backups
Adds a small hermes_settings map that Ansible checks with `hermes config get` and fixes with `hermes config set`, leaving the rest of config.yaml to Hermes (its updates migrate that file). First setting: updates.pre_update_backup: full (was false), so every `hermes update` zips ~/.hermes first. Rollback isn't supported once a new version has written state.db, so the backup is the way back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d617a2aa64
commit
eff53f2503
5 files changed
+29
No files matched your search
@@ -22,6 +22,10 @@ Manages cogitator-02, an Apple Silicon Mac on the tailnet (`mac.yml`,
|
||||
`~/.hermes/.env` (a plaintext password line there is removed, since it would
|
||||
override the hash). After setting up Serve, the play checks the dashboard
|
||||
demands a login through it; if not, it turns Serve off and fails.
|
||||
- **Hermes settings** (tag `hermes-settings`): the individual keys in
|
||||
`hermes_settings` (`group_vars/mac/main.yml`), checked with
|
||||
`hermes config get` and fixed with `hermes config set`. Today: a full
|
||||
backup of `~/.hermes` before every `hermes update`.
|
||||
|
||||
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.
|
||||
|
||||
Reference in new issue
Block a user