From 7dbabf76c5980c67606aed16b856991aeb0e12d3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 25 Nov 2023 00:51:13 -0500 Subject: [PATCH] Remove pycache entries on update --- oneshot/update-pvc-daemons.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oneshot/update-pvc-daemons.yml b/oneshot/update-pvc-daemons.yml index b4b7b4a..b6e7208 100644 --- a/oneshot/update-pvc-daemons.yml +++ b/oneshot/update-pvc-daemons.yml @@ -39,7 +39,11 @@ file: dest: /var/cache/apt/archives state: absent - + + - name: clean pycaches + command: 'find /usr/share/pvc -name "__pycache__" -exec rm -r {} \;' + ignore_errors: true + - name: restart daemons cleanly block: - name: secondary node