mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 02:38:10 +02:00
- 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
22 lines
757 B
YAML
22 lines
757 B
YAML
---
|
|
- name: "include _create-domains.yml for peertube"
|
|
include_tasks: _create-domains.yml
|
|
loop: "{{ domains[application_id] }}"
|
|
loop_control:
|
|
loop_var: domain
|
|
vars:
|
|
# Websockt and http listen to the same port
|
|
http_port: "{{ ports.localhost.http[application_id] }}"
|
|
ws_port: "{{ ports.localhost.http[application_id] }}"
|
|
|
|
- name: "load docker and db for {{ application_id }}"
|
|
include_role:
|
|
name: sys-stk-back-stateful
|
|
|
|
- name: "Install and activate auth-openid-connect plugin if OIDC is enabled"
|
|
include_tasks: 01_enable-oidc.yml
|
|
when: PEERTUBE_OIDC_ENABLED | bool
|
|
|
|
- name: "Deinstall and disable auth-openid-connect plugin if OIDC is enabled"
|
|
include_tasks: 02_disable-oidc.yml
|
|
when: not PEERTUBE_OIDC_ENABLED | bool |