Fix PeerTube OIDC plugin automation

- Store oidc_settings as proper YAML dict with correct keys
- Ensure plugin is installed only if missing
- Update DB settings as jsonb and enforce enabled/uninstalled state
- Add CLI enforcement for plugin activation
- Correct task conditions (enable/disable logic) with boolean filters

Ref: https://chatgpt.com/share/68dd1d16-9b34-800f-b2bf-a3fe058f25b1
This commit is contained in:
2025-10-01 14:23:07 +02:00
parent e7702948b8
commit 5cdcc18a99
3 changed files with 38 additions and 23 deletions

View File

@@ -15,8 +15,8 @@
- name: "Install and activate auth-openid-connect plugin if OIDC is enabled"
include_tasks: 01_enable-oidc.yml
when: PEERTUBE_OIDC_ENABLED
when: PEERTUBE_OIDC_ENABLED | bool
- name: "Deinstall and disable auth-openid-connect plugin if OIDC is enabled"
include_tasks: 02_disable-oidc.yml
when: PEERTUBE_OIDC_ENABLED
when: not PEERTUBE_OIDC_ENABLED | bool