mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-06-02 05:27:55 -02:30
* project: fix var-spacing ansible rule Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix spacing on the beginning/end of jinja template Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix spacing of default filter Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix spacing between filter arguments Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix double space at beginning/end of jinja Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix remaining jinja[spacing] ansible-lint warning Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
19 lines
553 B
YAML
19 lines
553 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 -%}"
|
|
|
|
- import_tasks: cleanup-old-vms.yml
|
|
|
|
- import_tasks: create-vms.yml
|
|
when:
|
|
- not vm_cleanup
|
|
|
|
- import_tasks: delete-vms.yml
|
|
when:
|
|
- vm_cleanup | default(false)
|