2019-04-16 21:49:07 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- 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:
|
2020-02-11 09:38:01 +00:00
|
|
|
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 -%}"
|
2019-04-16 21:49:07 +00:00
|
|
|
|
|
|
|
- import_tasks: create-vms.yml
|
|
|
|
when:
|
|
|
|
- not vm_cleanup
|
|
|
|
|
|
|
|
- import_tasks: delete-vms.yml
|
|
|
|
when:
|
|
|
|
- vm_cleanup | default(false)
|