kubespray/tests/cloud_playbooks/create-packet.yml
Max Gautier 71ae3c78e2
CI: ensure kubevirt VMs are available as part of provisionning
Allow to use the provisionning playbook from multiples users without
duplicating the ssh check.
2025-03-13 10:14:49 +01:00

25 lines
479 B
YAML

---
- name: Provision Packet VMs
hosts: localhost
gather_facts: false
become: true
tasks:
- name: Create Kubevirt VMs
import_role:
name: packet-ci
- name: Update inventory for Molecule
meta: refresh_inventory
- name: Wait until SSH is available
hosts: all
become: false
gather_facts: false
tasks:
- name: Wait until SSH is available
wait_for:
host: "{{ ansible_host }}"
port: 22
timeout: 240
delegate_to: localhost