mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-18 00:06:05 +02:00
Optimized Peertube OIDC draft
This commit is contained in:
16
roles/docker-peertube/tasks/enable-oidc.yml
Normal file
16
roles/docker-peertube/tasks/enable-oidc.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: "Install auth-openid-connect plugin for Peertube"
|
||||
command: >
|
||||
docker exec {{ container_name }} \
|
||||
npm run plugin:install -- --npm-name {{oidc_plugin}}
|
||||
|
||||
- name: Update Peertube config for OpenID Connect
|
||||
ansible.builtin.lineinfile:
|
||||
path: /opt/peertube/config/production.yaml
|
||||
regexp: '^{{ item.key }}:'
|
||||
line: "{{ item.key }}: {{ item.value }}"
|
||||
loop:
|
||||
- { key: "oidc.client_id", value: "{{ oidc_client_id }}" }
|
||||
- { key: "oidc.client_secret", value: "{{ oidc_client_secret }}" }
|
||||
- { key: "oidc.discover_url", value: "{{ oidc_discover_url }}" }
|
||||
- { key: "oidc.scope", value: "openid email profile" }
|
||||
become: yes
|
||||
Reference in New Issue
Block a user