From 78c41502a3c0e386e9e1d7c53683ad550158417a Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 9 Apr 2019 17:50:37 +0000 Subject: [PATCH] vhost_reboot: switch to using the new ansible 'reboot' module. Signed-off-by: Kevin Fenzi --- playbooks/vhost_reboot.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index 98477367f4..c5da5561ce 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -82,13 +82,10 @@ when: nonagios is not defined or not nonagios - name: reboot the virthost - command: /sbin/shutdown -r 1 - - - name: wait for virthost to come back - up to 15 minutes - local_action: wait_for host={{ target }} port=22 delay=120 timeout=900 search_regex=OpenSSH + reboot: - name: wait for libvirtd to come back on the virthost - wait_for: path=/var/run/libvirtd.pid state=present delay=10 + wait_for: path=/var/run/libvirtd.pid state=present - name: look up vmlist virt: command=list_vms