Skip to content

Commit

Permalink
Add timeout for VM to come online
Browse files Browse the repository at this point in the history
  • Loading branch information
chris1984 committed Jun 14, 2019
1 parent e31758e commit 20f9826
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion roles/chris1984.fog_testing/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
state: powered-on
delegate_to: localhost

- name: Wait two minutes for VM to be online
wait_for: timeout=120
delegate_to: localhost

- name: Install Foreman Nightly
import_tasks: tasks/install.yml
when: install_foreman|bool
Expand Down Expand Up @@ -135,4 +139,4 @@
folder: "/{{ vcenter_datacenter }}/{{ vcenter_folder }}"
name: "{{ vcenter_vm_name }}"
state: powered-off
delegate_to: localhost
delegate_to: localhost

0 comments on commit 20f9826

Please sign in to comment.