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