From 45932af564605f663b37285fa55f4a888effa56c Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 21 Nov 2013 10:24:17 +0000 Subject: [PATCH] Try to wait for downed vguests in parallel. --- playbooks/vhost_reboot.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index 021de10971..8c62aafaee 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -49,9 +49,16 @@ ignore_errors: true # if one of them is down we don't care + +- name: wait for the whole set to die. + hosts: myvms_new + user: root + + tasks: - name: wait for them to die local_action: wait_for port=22 delay=30 timeout=300 state=stopped host=${inventory_hostname} + - name: reboot vhost hosts: $target user: root