ansible/roles/wikijs/tasks/main.yaml

26 lines
842 B
YAML
Raw Normal View History

2021-01-09 17:54:42 +00:00
- name: Import secret.yaml to obtain secrets
include_tasks: secrets.yaml
when:
- wikijs_use_external_db
- postgres_enabled is defined and postgres_enabled
2021-01-09 17:54:42 +00:00
- set_fact:
wikijs_combined_values: "{{ wikijs_default_values | combine(wikijs_values, recursive=true) }}"
- name: Deploy WikiJS
2022-07-12 13:48:14 +00:00
kubernetes.core.helm:
2021-01-09 17:54:42 +00:00
create_namespace: true
release_namespace: "{{ wikijs_namespace | default(namespace) }}"
release_name: "{{ wikijs_name | default('wikijs') }}"
chart_ref: "{{ wikijs_chart_ref }}"
2021-01-09 17:54:42 +00:00
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 }}"