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>
40 lines
962 B
YAML
40 lines
962 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
|
|
|
|
- name: SSH key
|
|
ansible.posix.authorized_key:
|
|
user: "{{ ansible_user }}"
|
|
key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_ed25519.pub') }}"
|
|
tags: ssh
|
|
|
|
- name: Power settings
|
|
ansible.builtin.import_tasks: power.yml
|
|
tags: power
|
|
|
|
- name: Firewall
|
|
ansible.builtin.import_tasks: firewall.yml
|
|
tags: firewall
|
|
|
|
- name: Hermes dashboard
|
|
ansible.builtin.import_tasks: hermes-dashboard.yml
|
|
tags: hermes-dashboard
|
|
|
|
- name: Hermes settings
|
|
ansible.builtin.import_tasks: hermes-settings.yml
|
|
tags: hermes-settings
|