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

  1. ---
  2. - name: "Include custom vars for ci job: {{ ci_job_name }}"
  3. include_vars: "../files/{{ ci_job_name }}.yml"
  4. - name: Set VM count needed for CI test_id
  5. set_fact:
  6. 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 -%}"
  7. - import_tasks: create-vms.yml
  8. when:
  9. - not vm_cleanup
  10. - import_tasks: delete-vms.yml
  11. when:
  12. - vm_cleanup | default(false)