mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-19 12:10:11 -03:30
* project: fix ansible-lint name Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: ignore jinja template error in names Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: capitalize ansible name Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: update notify after name capitalization Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
22 lines
615 B
YAML
22 lines
615 B
YAML
---
|
|
|
|
- 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 -%}"
|
|
|
|
- name: Cleamup old VMs
|
|
import_tasks: cleanup-old-vms.yml
|
|
|
|
- name: Create VMs
|
|
import_tasks: create-vms.yml
|
|
when:
|
|
- not vm_cleanup
|
|
|
|
- name: Delete VMs
|
|
import_tasks: delete-vms.yml
|
|
when:
|
|
- vm_cleanup | default(false)
|