mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-09 19:57:16 +02:00
Refactored peertube role and implemented config volume
This commit is contained in:
@@ -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
|
||||
|
5
roles/web-app-peertube/tasks/02_disable-oidc.yml
Normal file
5
roles/web-app-peertube/tasks/02_disable-oidc.yml
Normal 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
|
@@ -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
|
@@ -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
|
Reference in New Issue
Block a user