Skip to content

Commit

Permalink
add wait for ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
andreygubarev committed May 25, 2023
1 parent ea09709 commit 130beda
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions molecule_qemu/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@
loop_control:
label: "{{ item.name }}"

- name: Wait for SSH to be ready
ansible.builtin.wait_for:
host: "{{ item.vm_ssh_host }}"
port: "{{ item.vm_ssh_port }}"
delay: 5
timeout: 180
search_regex: "OpenSSH"
loop: "{{ molecule_instances }}"
loop_control:
label: "{{ item.name }}"

- name: Prepare VMs config dict
ansible.builtin.set_fact:
instance_conf_dict: {
Expand Down

0 comments on commit 130beda

Please sign in to comment.