Refactored peertube role and implemented config volume

This commit is contained in:
2025-09-01 18:19:50 +02:00
parent b02d88adc0
commit 110381e80c
9 changed files with 27 additions and 24 deletions

View File

@@ -4,15 +4,15 @@
- name: Check if OIDC plugin is already installed
command: >
docker exec {{ peertube_name }} test -d /data/plugins/data/peertube-plugin-auth-openid-connect
docker exec {{ PEERTUBE_CONTAINER }} test -d /data/plugins/data/peertube-plugin-auth-openid-connect
register: peertube_oidc_plugin_check
failed_when: false
changed_when: false
- name: "Install auth-openid-connect plugin for Peertube"
command: >
docker exec {{ peertube_name }} \
npm run plugin:install -- --npm-name {{oidc_plugin}}
docker exec {{ PEERTUBE_CONTAINER }} \
npm run plugin:install -- --npm-name {{ PEERTUBE_OIDC_PLUGIN }}
when: peertube_oidc_plugin_check.rc != 0
notify: docker compose up

View File

@@ -0,0 +1,5 @@
- name: "Uninstall auth-openid-connect plugin for Peertube"
command: >
docker exec {{ PEERTUBE_CONTAINER }} \
npm run plugin:uninstall -- --npm-name {{ PEERTUBE_OIDC_PLUGIN }}
ignore_errors: true

View File

@@ -1,5 +0,0 @@
- name: "Uninstall auth-openid-connect plugin for Peertube"
command: >
docker exec {{ peertube_name }} \
npm run plugin:uninstall -- --npm-name {{oidc_plugin}}
ignore_errors: true

View File

@@ -1,7 +1,7 @@
---
- name: "include create-domains.yml for peertube"
include_tasks: create-domains.yml
loop: "{{ domains['web-app-peertube'] }}"
- name: "include _create-domains.yml for peertube"
include_tasks: _create-domains.yml
loop: "{{ domains[application_id] }}"
loop_control:
loop_var: domain
vars:
@@ -14,9 +14,9 @@
name: sys-stk-back-stateful
- name: "Install and activate auth-openid-connect plugin if OIDC is enabled"
include_tasks: enable-oidc.yml
when: applications | get_app_conf(application_id, 'features.oidc', False)
include_tasks: 01_enable-oidc.yml
when: PEERTUBE_OIDC_ENABLED
- name: "Deinstall and disable auth-openid-connect plugin if OIDC is enabled"
include_tasks: disable-oidc.yml
when: applications | get_app_conf(application_id, 'features.oidc', False)
include_tasks: 02_disable-oidc.yml
when: PEERTUBE_OIDC_ENABLED