From be237ac785c8308707c3b903c6fcc990d28bea72 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 23 Apr 2021 14:18:33 +0200 Subject: [PATCH] copr-hv: re-create socket file on libvirtd.socket change --- handlers/restart_services.yml | 4 ++++ roles/copr/hypervisor/tasks/main.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/handlers/restart_services.yml b/handlers/restart_services.yml index bffabf80c7..09f823a854 100644 --- a/handlers/restart_services.yml +++ b/handlers/restart_services.yml @@ -53,6 +53,10 @@ - name: restart libvirtd action: service name=libvirtd state=restarted +- name: restart libvirtd.socket + action: service name=libvirtd.socket state=stopped + notify: restart libvirtd + - name: restart mailman action: service name=mailman state=restarted diff --git a/roles/copr/hypervisor/tasks/main.yml b/roles/copr/hypervisor/tasks/main.yml index 725e072b94..6022cfe320 100644 --- a/roles/copr/hypervisor/tasks/main.yml +++ b/roles/copr/hypervisor/tasks/main.yml @@ -77,7 +77,7 @@ backup: yes notify: - reload systemd - - restart libvirtd + - restart libvirtd.socket tags: libvirtd - name: create the copr user