ansible/roles/wikijs/tasks/main.yaml

26 lines
862 B
YAML

- name: Import secret.yaml to obtain secrets
include_tasks: secrets.yaml
when:
- wikijs_use_external_db
- postgres_enabled is defined and postgres_enabled
- set_fact:
wikijs_combined_values: "{{ wikijs_default_values | combine(wikijs_values, recursive=true) }}"
- name: Deploy WikiJS
kubernetes.core.helm:
create_namespace: true
release_namespace: "{{ wikijs_namespace | default(namespace) }}"
release_name: "{{ wikijs_name | default('wikijs') }}"
chart_ref: "{{ wikijs_chart | default('ghp/wikijs') }}"
chart_version: "{{ wikijs_version | default(omit) }}"
release_values: "{{ wikijs_combined_values | from_yaml }}"
wait: true
- name: Deploy readonly public ingress for WikiJS
when: wikijs_readonly_ingress is defined
k8s:
state: present
definition:
"{{ wikijs_readonly_ingress_definition }}"