k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
510 B
16 lines
510 B
---
|
|
|
|
- name: "Include custom vars for ci job: {{ ci_job_name }}"
|
|
include_vars: "../files/{{ ci_job_name }}.yml"
|
|
|
|
- name: Set VM count needed for CI test_id
|
|
set_fact:
|
|
vm_count: "{%- if mode in ['separate', 'separate-scale', 'ha', 'ha-scale', 'ha-recover', 'ha-recover-noquorum'] -%}{{ 3|int }}{%- elif mode == 'aio' -%}{{ 1|int }}{%- else -%}{{ 2|int }}{%- endif -%}"
|
|
|
|
- import_tasks: create-vms.yml
|
|
when:
|
|
- not vm_cleanup
|
|
|
|
- import_tasks: delete-vms.yml
|
|
when:
|
|
- vm_cleanup | default(false)
|