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
|
ignore_errors: true
|
||||||
when: nonagios is not defined or not nonagios
|
when: nonagios is not defined or not nonagios
|
||||||
|
|
||||||
- name: halt the vm instances - to poweroff
|
- name: shutdown vms
|
||||||
command: /sbin/shutdown -h 1
|
virt: command=shutdown name={{ inventory_hostname }}
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
# if one of them is down we don't care
|
delegate_to: "{{ target }}"
|
||||||
|
|
||||||
- name: wait for the whole set to die.
|
- name: wait for the whole set to die.
|
||||||
hosts: myvms_new
|
hosts: myvms_new
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue