vhost_reboot: adjust libvirt pid to libvirt socket

On newer libvirt there's no pid file, instead there's a socket that
listens and then the service is started. So, check that the socket is
there instead of looking for a broken pid file.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-03-27 14:27:55 -07:00
parent cd96b0cd32
commit 1eeb585f74

View file

@ -95,7 +95,7 @@
reboot:
- name: wait for libvirtd to come back on the virthost
wait_for: path=/var/run/libvirtd.pid state=present
wait_for: path=/run/libvirtd-sock state=present
- name: look up vmlist
virt: command=list_vms