mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user