CI: ensure kubevirt VMs are available as part of provisionning

Allow to use the provisionning playbook from multiples users without
duplicating the ssh check.
This commit is contained in:
Max Gautier
2025-03-11 14:12:55 +01:00
parent 315313dd10
commit 71ae3c78e2
3 changed files with 13 additions and 15 deletions

View File

@@ -9,3 +9,16 @@
name: packet-ci name: packet-ci
- name: Update inventory for Molecule - name: Update inventory for Molecule
meta: refresh_inventory 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

View File

@@ -1,13 +0,0 @@
---
- 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

View File

@@ -63,8 +63,6 @@ EOF
fi fi
ansible-playbook tests/cloud_playbooks/wait-for-ssh.yml
run_playbook () { run_playbook () {
playbook=$1 playbook=$1
shift shift