Try to wait for downed vguests in parallel.
This commit is contained in:
parent
6693c72a45
commit
45932af564
1 changed files with 7 additions and 0 deletions
|
@ -49,9 +49,16 @@
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
# if one of them is down we don't care
|
# 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
|
- name: wait for them to die
|
||||||
local_action: wait_for port=22 delay=30 timeout=300 state=stopped host=${inventory_hostname}
|
local_action: wait_for port=22 delay=30 timeout=300 state=stopped host=${inventory_hostname}
|
||||||
|
|
||||||
|
|
||||||
- name: reboot vhost
|
- name: reboot vhost
|
||||||
hosts: $target
|
hosts: $target
|
||||||
user: root
|
user: root
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue