2021-01-09 17:54:42 +00:00
|
|
|
- name: Import secret.yaml to obtain secrets
|
|
|
|
include_tasks: secrets.yaml
|
|
|
|
when:
|
|
|
|
- drone_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:
|
|
|
|
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
|