ansible/roles/peertube/tasks/main.yaml

18 lines
685 B
YAML

- name: Import secret.yaml to obtain secrets
include_tasks: secrets.yaml
when:
- peertube_use_external_db
- postgres_enabled is defined and postgres_enabled
- set_fact:
peertube_combined_values: "{{ peertube_default_values | combine(peertube_values, recursive=true) }}"
- name: Deploy PeerTube
kubernetes.core.helm:
create_namespace: true
release_namespace: "{{ peertube_namespace | default(namespace) }}"
release_name: "{{ peertube_name | default('peertube') }}"
chart_ref: "{{ peertube_chart | default('ghp/peertube') }}"
chart_version: "{{ peertube_version | default(omit) }}"
release_values: "{{ peertube_combined_values | from_yaml }}"