ansible/roles/peertube/tasks/main.yaml
2024-05-25 18:12:30 +03:00

18 lines
677 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 | default({}), 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_ref }}"
chart_version: "{{ peertube_version | default(omit) }}"
release_values: "{{ peertube_combined_values | from_yaml }}"