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:
parent
b1f58ff99a
commit
a839211e9d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue