From f277acc974c98d30900b8d1cdffbffcd9137faba Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 15 Dec 2020 14:32:50 -0500 Subject: [PATCH] Disable pvc-flush service while rebooting Prevents the flush daemon from starting on node boot, before the playbook is actually ready to unflush the node. --- oneshot/update-pvc-cluster.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/oneshot/update-pvc-cluster.yml b/oneshot/update-pvc-cluster.yml index 79f6a56..fc833c9 100644 --- a/oneshot/update-pvc-cluster.yml +++ b/oneshot/update-pvc-cluster.yml @@ -95,10 +95,11 @@ become: no connection: local - - name: stop PVC flush daemon cleanly + - name: stop and disable PVC flush daemon cleanly service: name: "pvc-flush" state: stopped + enabled: no - name: stop PVC daemon cleanly service: @@ -143,6 +144,12 @@ become: no connection: local + - name: start and enable PVC flush daemon cleanly + service: + name: "pvc-flush" + state: started + enabled: yes + - name: reset any systemd failures command: systemctl reset-failed when: freshness.changed or kernelversion.changed