2021-01-09 17:54:42 +00:00
|
|
|
- name: Import secret.yaml to obtain secrets
|
|
|
|
include_tasks: secrets.yaml
|
|
|
|
when:
|
|
|
|
- roundcube_use_external_db
|
2021-01-25 01:58:20 +00:00
|
|
|
- postgres_enabled is defined and postgres_enabled
|
2021-01-09 17:54:42 +00:00
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
roundcube_combined_values: "{{ roundcube_default_values | combine(roundcube_values, recursive=true) }}"
|
|
|
|
|
|
|
|
- name: Deploy RoundCube
|
|
|
|
community.kubernetes.helm:
|
|
|
|
create_namespace: true
|
|
|
|
release_namespace: "{{ roundcube_namespace | default(mail_namespace) | default(namespace) }}"
|
|
|
|
release_name: "{{ roundcube_name | default('roundcube') }}"
|
|
|
|
chart_ref: "{{ roundcube_chart | default('ghp/roundcube') }}"
|
|
|
|
chart_version: "{{ roundcube_version | default(omit) }}"
|
|
|
|
release_values: "{{ roundcube_combined_values | from_yaml }}"
|
|
|
|
wait: true
|
|
|
|
|