ansible/roles/bitwarden/tasks/main.yaml
2021-01-09 20:54:42 +03:00

20 lines
686 B
YAML

- name: Import secret.yaml to obtain secrets
include_tasks: secrets.yaml
when:
- bitwarden_use_external_db
- postgres_enable
- set_fact:
bitwarden_combined_values: "{{ bitwarden_default_values | combine(bitwarden_values, recursive=true) }}"
- name: Deploy Bitwarden
community.kubernetes.helm:
create_namespace: true
release_namespace: "{{ bitwarden_namespace | default(namespace) }}"
release_name: "{{ bitwarden_name | default('bitwarden') }}"
chart_ref: "{{ bitwarden_chart | default('ghp/bitwarden') }}"
chart_version: "{{ bitwarden_version | default(omit) }}"
release_values: "{{ bitwarden_combined_values | from_yaml }}"
wait: true