Via hermes_settings (now compared structurally, with null = unset, and a gateway restart on change): - timezone America/Denver (was unset) - auth.adopt_external_logins false: never borrow Claude Code's login - terminal.cwd unset: stops the /workspace warnings (#140527) - agent.disabled_toolsets [kanban]: unused, 25 KB of tool schema per call - skills.write_approval true - approvals.deny: force-push, curl|sh, dd to devices (docs' examples) - streaming.enabled true, stt.local.model small - terminal.container_memory 3072, inside a 4 GB Podman VM (was 2 GB VM with a 5 GB container limit), set by a new podman task Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.0 KiB
YAML
25 lines
1.0 KiB
YAML
# `hermes config get` prints the value as YAML (or "Config key not set"), so
|
|
# it's compared structurally; `hermes config set` takes JSON for lists and
|
|
# booleans. A null value means the key should not be set at all.
|
|
- name: Read Hermes settings
|
|
ansible.builtin.command:
|
|
argv: ["{{ hermes_cli }}", config, get, "{{ item.key }}"]
|
|
loop: "{{ hermes_settings | dict2items }}"
|
|
register: hermes_settings_current
|
|
changed_when: false
|
|
check_mode: false
|
|
|
|
- name: Set Hermes settings
|
|
ansible.builtin.command:
|
|
argv: >-
|
|
{{ [hermes_cli, 'config', 'unset', item.item.key] if item.item.value is none else
|
|
[hermes_cli, 'config', 'set', item.item.key,
|
|
item.item.value if item.item.value is string else item.item.value | to_json] }}
|
|
loop: "{{ hermes_settings_current.results }}"
|
|
loop_control:
|
|
label: "{{ item.item.key }} = {{ item.item.value | to_json }}"
|
|
when: >-
|
|
(none if item.stdout is search('^Config key not set') else item.stdout | from_yaml)
|
|
!= item.item.value
|
|
notify: Restart Hermes gateway
|