Fix Hermes plugin config: use config file instead of env vars
Hermes plugins don't inherit container env vars. Switch the Miniflux plugin to read credentials from a config.json written by Ansible, and drop requires_env / container env vars. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -365,6 +365,21 @@
|
||||
notify: Restart Hermes
|
||||
tags: hermes
|
||||
|
||||
- name: Write Miniflux plugin config
|
||||
copy:
|
||||
dest: /opt/hermes/plugins/miniflux/config.json
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0600'
|
||||
content: |
|
||||
{
|
||||
"base_url": "http://miniflux:8080",
|
||||
"api_key": "{{ hermes_miniflux_api_key }}"
|
||||
}
|
||||
no_log: true
|
||||
notify: Restart Hermes
|
||||
tags: hermes
|
||||
|
||||
- name: Write Hermes .env
|
||||
copy:
|
||||
dest: /opt/hermes/.env
|
||||
@@ -375,7 +390,6 @@
|
||||
OPENROUTER_API_KEY={{ hermes_openrouter_api_key }}
|
||||
TELEGRAM_BOT_TOKEN={{ hermes_telegram_bot_token }}
|
||||
TELEGRAM_ALLOWED_USERS={{ hermes_telegram_allowed_users }}
|
||||
MINIFLUX_API_KEY={{ hermes_miniflux_api_key }}
|
||||
no_log: true
|
||||
tags: hermes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user