kubespray/tests/cloud_playbooks/roles/packet-ci/tasks/main.yml

18 lines
348 B
YAML

---
- name: "Include custom vars for ci job: {{ ci_job_name }}"
include_vars: "../files/{{ ci_job_name }}.yml"
- 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)