From a839211e9d7ac2a39990c5509c66463a29dd9c66 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 29 Mar 2022 10:15:31 -0700 Subject: [PATCH] vhost_reboot: switch to usin virsh shutdown so we don't need ssh access Signed-off-by: Kevin Fenzi --- playbooks/vhost_reboot.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index 8ee692f75f..34c59db508 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -80,10 +80,10 @@ ignore_errors: true when: nonagios is not defined or not nonagios - - name: halt the vm instances - to poweroff - command: /sbin/shutdown -h 1 + - name: shutdown vms + virt: command=shutdown name={{ inventory_hostname }} ignore_errors: true - # if one of them is down we don't care + delegate_to: "{{ target }}" - name: wait for the whole set to die. hosts: myvms_new