Skip to content

Commit

Permalink
deploy_vms_standalone.yaml: wait for VM to be online
Browse files Browse the repository at this point in the history
This is particularly useful when we want to start another playbook on
the VM, directly after this one.

Signed-off-by: Erwann Roussy <erwann.roussy@savoirfairelinux.com>
  • Loading branch information
eroussy committed Aug 10, 2023
1 parent 63bb514 commit 6d627a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions playbooks/deploy_vms_standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,10 @@
name: "{{ item }}"
state: running
with_items: "{{ groups['VMs'] }}"

- hosts: VMs
name: Wait for VMs to be online
gather_facts: false
tasks:
- name: Wait for VM connections
wait_for_connection:

0 comments on commit 6d627a0

Please sign in to comment.