From 750cb4b55c31163a9fab129e710b518791f4dcba Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:24 -0400 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