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

18 lines
703 B
YAML

- set_fact:
dovecot_combined_values: "{{ dovecot_default_values | combine(dovecot_values | default({}), recursive=true) }}"
when: not mail_oidc
- set_fact:
dovecot_combined_values: "{{ dovecot_oidc_default_values | combine(dovecot_oidc_values | default({}), recursive=true) }}"
when: mail_oidc
- name: Deploy Dovecot
kubernetes.core.helm:
create_namespace: true
release_namespace: "{{ dovecot_namespace | default(mail_namespace) | default(namespace) }}"
release_name: "{{ dovecot_name | default('dovecot') }}"
chart_ref: "{{ dovecot_chart_ref }}"
chart_version: "{{ dovecot_version | default(omit) }}"
release_values: "{{ dovecot_combined_values | from_yaml }}"