vhost_reboot: switch to using the new ansible 'reboot' module.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
780adf71a1
commit
78c41502a3
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue