vhost_reboot: switch to usin virsh shutdown so we don't need ssh access

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-03-29 10:15:31 -07:00
parent b1f58ff99a
commit a839211e9d

View file

@ -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