- name: Import secret.yaml to obtain secrets include_tasks: secrets.yaml when: - drone_use_external_db - postgres_enable - set_fact: drone_combined_values: "{{ drone_default_values | combine(drone_values, recursive=true) }}" - set_fact: drone_runner_kube_combined_values: "{{ drone_runner_kube_default_values | combine(drone_runner_kube_values, recursive=true) }}" - name: Deploy Drone Server community.kubernetes.helm: create_namespace: true release_namespace: "{{ drone_namespace | default(namespace) }}" release_name: "{{ drone_name | default('drone') }}" chart_ref: "{{ drone_chart | default('drone/drone') }}" chart_version: "{{ drone_version | default(omit) }}" release_values: "{{ drone_combined_values | from_yaml }}" wait: true - name: Deploy Drone Runner Kube community.kubernetes.helm: create_namespace: true release_namespace: "{{ drone_runner_kube_namespace | default(namespace) }}" release_name: "{{ drone_runner_kube_name | default('drone-runner-kube') }}" chart_ref: "{{ drone_runner_kube_chart | default('drone/drone-runner-kube') }}" chart_version: "{{ drone_runner_kube_version | default(omit) }}" release_values: "{{ drone_runner_kube_combined_values | from_yaml }}" wait: true